Results 1 to 2 of 2

Thread: Splash Screens

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    Windsor
    Posts
    6
    I would like to know how I can make a splash screen disappear, after a certain amount of time by using the timer control, and have the form of my program show up when the splash screen is gone.

  2. #2
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    Create 2 Forms one name frmSplash and one named frmMain, and insert 1 timer on frmSplash

    insert this code on frmSplash
    [CODE]
    Private Sub Form_Load()
    Timer1.Interval = 1000 ' close to 1 second
    End Sub

    Private Sub Timer1_Timer()
    Static iSeconds As Integer

    'increase seconds every time sub is called
    iSeconds = iSeconds + 1
    If iSeconds = 15 Then

    ' get rid of splash
    frmSplash.Hide
    Unload frmSplash

    ' show main form
    Load frmMain
    frmMain.Show

    End If
    End Sub
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

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