I have a Timer that Fills the progress Bar, because to give some time to load.
It worked fine until I put the Initialize Devices() in.
I don't want my main form to have to deal with initializing devices, so I have a Startup form to do that.
The Code works good anyway, It is just that the progress bar won't fill at all. The timer starts, but No Green Line. Or the Green Line Is Basically Invisible
Is there a fix?
It worked fine until I put the Initialize Devices() in.
I don't want my main form to have to deal with initializing devices, so I have a Startup form to do that.
The Code works good anyway, It is just that the progress bar won't fill at all. The timer starts, but No Green Line. Or the Green Line Is Basically Invisible
Is there a fix?
Code:
Private Sub StartupLoad_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Explorer = New PosExplorer(Me)
InitializeDevices()
Timer1.Start()
Private Sub InitializeDevices()
...
... MY CODE .......
END SUB
Private Sub Timer1_Tick(sender As Object, e As System.EventArgs) Handles Timer1.Tick
ProgressBar1.Increment(5)
If ProgressBar1.Value = 100 Then
Timer1.Stop()
MAINFORM.Show()
End If
END SUB