progress bar

bahram

Member
Joined
May 1, 2006
Messages
13
Programming Experience
1-3
i have a form that update many fields in database now when i click update a newform like messagebox shown and in this a progress bar show please help me ?
 
This is much more complex than you think. Firstly, it's not possible to show the actual progress because the Update method doesn't report its progress. It simply returns when it's finished. That means that you can show a ProgressBar with its style set to Marquee, so it indicates that something is happening, but it cannot indicate how far along the operation is or how much longer it will take. Also, if you are using a single-threaded application then the UI cannot be updated while the database operation is in progress. This means that if you want the UI to remain responsive you will need to make your application multi-threaded. Are you ready for that?
 
Back
Top