Results 1 to 3 of 3

Thread: Splash screen

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    56

    Splash screen

    I want to add a splash screen to my application and then the sign in login window to appear. What is the code for the timer to display the splash screen for a short time then load the sign in screen?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Splash screen

    Moved from CodeBank

  3. #3
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Splash screen

    in the splash screen form, add a timer and try this, here form2 refers to the login form in your project.
    VB Code:
    1. Private Sub Form_Load()
    2.     Timer1.Interval = 5000 'this will make your form to be present for 5 seconds
    3.     Timer1.Enabled = True
    4. End Sub
    5.  
    6. Private Sub Timer1_Timer()
    7.     Timer1.Enabled = False
    8.     Form2.Show
    9.     Unload Me
    10. End Sub
    Harsh
    Show Appreciation. Rate Posts.

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