Profile Picture

NWaitingBar just stops

Posted By Gary Smith 14 Years Ago
Author
Message
Gary Smith
Posted 14 Years Ago
View Quick Profile
Forum Member

Forum Member (39 reputation)Forum Member (39 reputation)Forum Member (39 reputation)Forum Member (39 reputation)Forum Member (39 reputation)Forum Member (39 reputation)Forum Member (39 reputation)Forum Member (39 reputation)Forum Member (39 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 39, Visits: 1
I have added the control with these options:

NWaitingBar1.Properties.Step = 5
NWaitingBar1.Properties.WaitSize = 30
NWaitingBar1.Properties.Style = WinForm.Controls.ProgressBarStyle.Gradient
NWaitingBar1.Properties.Text =
"Downloading Visit Data"
NWaitingBar1.Visible = True
NWaitingBar1.BeginWait()

This is called in a function that downloads data from a SQL server, The above is first, then it goes through a while command,  then I call NWaitingBar1.EndWait() at the end of the while. However, the minute that the downloading starts, the bar STOPS moving? Whats the point of having a waiting bar if its not going to continue to update until I tell it to end?  Maybe I'm missing something, is there some increment that I have to tell it to do while I'm downloading my data in a loop?

This is where it stops:
Using dbReader
  
While dbReader.Read

       (Download some data)

        Bar stops moving... when it should be continuing?

   End While
End Using
(If I dont use a .endwait here, the bar starts moving again....?)

Thanks for any advice/help...

Gary






Similar Topics


Reading This Topic