Results 1 to 4 of 4

Thread: Splash Screens

  1. #1

    Thread Starter
    Lively Member trip85's Avatar
    Join Date
    Jun 2000
    Location
    Chalfont, PA
    Posts
    106

    Question

    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?

  2. #2
    Guest
    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.

    Code:
    Sleep(1000)

  3. #3
    Guest
    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

  4. #4

    Thread Starter
    Lively Member trip85's Avatar
    Join Date
    Jun 2000
    Location
    Chalfont, PA
    Posts
    106
    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
  •  



Click Here to Expand Forum to Full Width