Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27443

Progress Bar Will Not Fill With The Initialize Devices. How to fix or Sugg?

$
0
0
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?
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


Viewing all articles
Browse latest Browse all 27443

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>