|
-
May 26th, 2005, 04:09 PM
#1
Thread Starter
Lively Member
Timed Splashscreen
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
-
May 26th, 2005, 04:13 PM
#2
Re: Timed Splashscreen
 Originally Posted by UrlGuy
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 
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
-
May 26th, 2005, 04:19 PM
#3
Junior Member
Re: Timed Splashscreen
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
AMD Athlon 2.4 GHz - 512 Mb RAM - Win XP Pro SP2
-
May 26th, 2005, 04:21 PM
#4
Re: Timed Splashscreen
 Originally Posted by Jethro Tull
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
Just don't forget to show the next form or you'll end up showing nothing at all 
Cheers,
RyanJ
-
May 26th, 2005, 04:27 PM
#5
Junior Member
AMD Athlon 2.4 GHz - 512 Mb RAM - Win XP Pro SP2
-
May 26th, 2005, 04:28 PM
#6
Re: Timed Splashscreen
 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
-
May 26th, 2005, 04:54 PM
#7
Junior Member
Re: Timed Splashscreen
Normally I start my apps in a splash form, and here I make the initializations, and then load the MDI form.
AMD Athlon 2.4 GHz - 512 Mb RAM - Win XP Pro SP2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|