-
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
-
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
-
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
-
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
-
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 :)
-
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
-