Results 1 to 7 of 7

Thread: Form to Form & Longer Splash Screen

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Location
    Texas
    Posts
    26

    Cool

    I am very new in VB, I got the oftware about a week ago. I have gone through some tutorials, but stil having two main problems.

    1st: I am trying to set it up so that when a button is clicked, that current form closes then loads up another pre-mae form

    2nd: How can I tell the splash screen to stay up longer. Currently is stays up or about 1 sec. I am trying to get it to say up for about 3-4secs, what is the code for that?

    Thanks,
    -System

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    1.
    Code:
    'Make it invisible to prevent flickering and overlaying.
    Me.Visible = False
    'Show FORM2
    Form2.Show
    'Unload the current form from the memory
    Unload Me
    2.
    Code:
    'Put a timer on the Splash screen and set the Interval to 3000 (for 3 seconds = 3000 miliseconds)
    Private Sub Timer1_Timer()
    'Unload the Splash Screen from the memory
    Unload Me
    End Sub
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Canada
    Posts
    264
    1.

    Private Sub Command1_Click()
    Me.Hide ' this will hide the current form
    form2.Show ' this will show the second form
    Unload Me ' this will unload the current form from memory (you don't have to do it if you want to get back to it later ..
    End Sub

    2. explain splash page.. please
    In the beginning the universe was created. This has made a lot of people very angry and is generally regarded as a bad idea.

    - Douglas Adams
    The Hitchhiker's Guide to the Galaxy

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Location
    Texas
    Posts
    26

    Thumbs up

    Thanks for the reply.
    The Form to Form code worked great, but the splash screen is still messed up.

    I put a timer on and set it for 6000 (6 secs.) to test it, and when I ran it, the splash screen only stayed up for less than 1 sec.
    Got any ideas?

    Thanks,
    System

  5. #5
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Please give us the code, there's probably another Timer or something (Loop? GetTickCount API?)on the Form, let us find it and remove it for ya
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Location
    Texas
    Posts
    26

    Thumbs up

    Thanks guys, I figured it out.
    My problem was that I was using a pre-made splashscreen form, so it still had the "show only while loading program" option thingy going. I just made a new form and set the timer on that, along with the form to form code.

    You guys are really into this, thats cool.

    Thanks,
    System

  7. #7
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    No problem mate!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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