For my program, if I would want to display a form, picture or something before the main app loaded how would I do that? Im pretty sure it has something to do with the timer icon but I'm not sure how to use that, hope anyone can help a newb :)
Printable View
For my program, if I would want to display a form, picture or something before the main app loaded how would I do that? Im pretty sure it has something to do with the timer icon but I'm not sure how to use that, hope anyone can help a newb :)
Quote:
Originally Posted by UrlGuy
Heres the idea:
Create a form (Say for an example frmSplash).
Add whatever you like to that and add a Timer to that with an interval of 10000 (10 Seconds).
In the Timer1_Timer Event put something like this:
VB Code:
Private Sub Timer1_Timer() ' Show the next form... frmFormNameHere.Show (vbNormal) ' Unload this form... Unload Me End Sub
Or, something like that :)
Cheers,
Ryanj
I suggest you to start the project in the splash form (in Project--->(project) properties).
As sciguyryan said, put a timer in the form and set the timer at your pleasure (I suggest no more than 10 secs, it is Interval <= 10000) and
VB Code:
Private Sub Timer1_Timer() Unload Me End Sub
Quote:
Originally Posted by Jethro Tull
Just don't forget to show the next form or you'll end up showing nothing at all :)
Cheers,
RyanJ
Quote:
Originally Posted by Jethro Tull
Easy mistake to make, I made that one once and was getting annoyed because I could not find my application.... I spent hours working through the code and it all ended up with one line of code... :)
Cheers,
RyanJ
Normally I start my apps in a splash form, and here I make the initializations, and then load the MDI form.