954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Using Progress bar with Background Worker in VB

Hi Guys,
I am developing a VB application along with MS Access... When I initially load my form I need to put my application to sleep for 3 seconds or else data wont load properly. So for this 3 seconds I would like to show a progress bar displaying a message "Please wait..."
I tried using background worker but did not find any success... I have gone through many tutorials but for some reason could not accomplish the task...
Could you please help me ...

Thank you
Ashwin

ashwinshenoy
Newbie Poster
18 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

Make all the Controls in the Form disabled, and at the Form load make the Progress bar to be loaded, Use an timer control to be filling the Status bar for 3 seconds, when ever the Progress bar value reaches maximum write a code to enable all the remaining controls. But, you have to check the progress bar value is reached maximum or not every time by a Timer control or use a for loop to change the Progress bar value.

Saikalyankumar
Junior Poster in Training
91 posts since Mar 2011
Reputation Points: 8
Solved Threads: 23
 

Hi,

What you also can do is to create a splasscreen.
In that screen you can add some program information like Name, programmers, version, etc...
Add a progressbar and when the value reach 3 sec. then show the form load.

Luc001
Posting Whiz
376 posts since Mar 2010
Reputation Points: 85
Solved Threads: 98
 

Hi LUC001,
It was a very good suggestion.. and by mistake I clicked the down arrow and you must have got the negative rating... Really sorry for that... Lemme know if I can amend it

ashwinshenoy
Newbie Poster
18 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

Hi ashwinshenoy,

No problem :)
I'm pleased that my suggestion helped you for your application.

Grts,

Luc

Luc001
Posting Whiz
376 posts since Mar 2010
Reputation Points: 85
Solved Threads: 98
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: