Results 1 to 3 of 3

Thread: Pause Script for certain time! (Splash)

  1. #1

    Thread Starter
    Hyperactive Member ..:RUDI:..'s Avatar
    Join Date
    Aug 2005
    Location
    Yorkshire, England! c0d: Da Vinci
    Posts
    344

    Pause Script for certain time! (Splash)

    I have a program with a splash screen but I want it to show up for a certain amount of time:

    VB Code:
    1. Public fMainForm As frmMain
    2.  
    3.  
    4. Sub Main()
    5.     frmSplash.Show
    6.     frmSplash.Refresh
    7.     [B]' I would like to create a puse of some sort in here![/b]
    8.     Set fMainForm = New frmMain
    9.     Load fMainForm
    10.     Unload frmSplash
    11.  
    12.  
    13.     fMainForm.Show
    14. End Sub

    Is that possible, I know it is in other BASIC languages with pause(ms)

    Thanks in advance



    My Personal Home | MageBB Home | Elders Online
    Yes, Noteme is my father.

  2. #2
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    Re: Pause Script for certain time! (Splash)

    Try the sleep function

    VB Code:
    1. Declare Sub Sleep Lib "kernel32.dll" (ByVal dwmilliseconds As Long)
    2.  
    3. 'Somewhere in project
    4. Sleep 1000 'pause for 1 second
    Danny

    Never Think Impossible

    If you find my answer helpful then please add to my reputation

  3. #3

    Thread Starter
    Hyperactive Member ..:RUDI:..'s Avatar
    Join Date
    Aug 2005
    Location
    Yorkshire, England! c0d: Da Vinci
    Posts
    344

    Re: Pause Script for certain time! (Splash)

    Thanks



    My Personal Home | MageBB Home | Elders Online
    Yes, Noteme is my father.

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