NWaitingBar1.Properties.Step = 5NWaitingBar1.Properties.WaitSize = 30NWaitingBar1.Properties.Style = WinForm.Controls.ProgressBarStyle.GradientNWaitingBar1.Properties.Text =
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 WhileEnd Using(If I dont use a .endwait here, the bar starts moving again....?)Thanks for any advice/help...Gary
Hi Gary,
The problem seems to be that you read the data from the database in the same thread where the application runs. So, while you read the data the application is not responding therefore the waiting bar doesn't "wait".
Please, try to load the data in separate thread and call EndWait in the same thread when you finnish reading.
Regards,
Angel.