Connecting Tech Pros Worldwide Help | Site Map

how to put a progress bar on a splash screen to show the load time of an application

Newbie
 
Join Date: Oct 2009
Posts: 1
#1: 4 Weeks Ago
Hi evere body
I did an application in vb 2005. The application includes 4 databases. I have assigned ten seconds for the splash screen to show while the application is loading. I need to include a progress bar on the`splash screen to show the load progress of the application.

Any help is much appreciated
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,745
#2: 4 Weeks Ago

re: how to put a progress bar on a splash screen to show the load time of an application


Make a form
Put a ProgressBar on it.
Give it minimum and maximum values you like: Maybe 0 and 10 for the ten seconds.
Put a timer on the form with interval of 1000 milliseconds.
Put a handler on the timer_tick event.
In that handler increment the value of the progress bar

When you start your load, show the form and start the timer
When you are done loading, close the form
Reply


Similar .NET Framework bytes