|
-
Jun 21st, 2000, 02:56 AM
#1
Thread Starter
Lively Member
I have a splash screen in my application that was created using the application wizard. Is there anyway to increase the amount of time thye splash screen stays visisble on the screen when the application is loading?
-
Jun 21st, 2000, 03:06 AM
#2
You can place a Timer on your Splash Screen and make it stay for a certain amount of time, or you can use the Sleep API and place the following code right before you unload the Form and Load the new one.
-
Jun 21st, 2000, 03:09 AM
#3
Here, I just took the Code from the module it creates. When you add it, it should look like this.
Code:
Public fMainForm As frmMain
' Added the Sleep API
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub Main()
frmSplash.Show
frmSplash.Refresh
Sleep (1500) ' Sleep(pause) for 1.5 seconds
Set fMainForm = New frmMain
Load fMainForm
Unload frmSplash
fMainForm.Show
End Sub
-
Jun 21st, 2000, 03:15 AM
#4
Thread Starter
Lively Member
Thanks for the info, it was very helpful.
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
|