Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use StartupForm

Status
Not open for further replies.

Lascar

Technical User
Oct 17, 2003
29
CA
Can someone give me an example on how to use 'StartupForm'? I don't understand VB's help definition
 
Ok there are two ways that i know of: The first is to use timers. Put a timer on the Splash form, for 5 seconds or summot. When the time is up, load the form you want the user to see first and then close the splash form. This is the simplest way and gives a good effect.

If how ever you want the program to be doing some checks while it loads then do it this way.

Set the program to start with Sub Main.
Put Sub Main in a module like so

Sub Main
Load SplashForm
'What ever checks you want to do here
Unload SplahForm
End Sub

Hope that helps out

Regards

JP
 
Actually, whatever form is suppose to load on startup, I want to stop it. I think StartupForm must equal "", but how do I use it
 
Set Project|Properties|Startup object to SubMain if you need to do stuff beg=fore a form loads

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top