I'm using a progress bar to monitor a process that's retrieving a lot of data from a database. That process loops and updates the ProgressBar.Value property as it goes round.
Problem is, i don't see anything happen. The progress bar is visible and when I step through the code I can see the value changing but nothing gets displayed. I've tried calling the form.refresh function but no banana.
Is there anything else I need to do to get this thing working?
Sorry, you'll have to elaborate, i'm new to VB. Do you mean just putting in idle calculations to take up processor time and give it time to display?
Or do you mean raising an event that causes the bar to refresh?
IT's worth noting that the code that causes the bar to update is in a separate class to the form and calls a sub in the form to get it to update. Coudl this be the cause of my problems? The bar does update itself if I set the value in the form_load function.
Still nothing, this must be some sort of threading issue that i'm completely unaware of. It's as if the form is running in a completely separate process that's not getting any processor time regardless.