|
-
Sep 9th, 2000, 10:07 AM
#1
Thread Starter
Junior Member
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
-
Sep 9th, 2000, 10:15 AM
#2
Frenzied Member
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.
-
Sep 9th, 2000, 10:17 AM
#3
Hyperactive Member
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
-
Sep 9th, 2000, 10:28 AM
#4
Thread Starter
Junior Member
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
-
Sep 9th, 2000, 10:31 AM
#5
Frenzied Member
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.
-
Sep 9th, 2000, 10:51 AM
#6
Thread Starter
Junior Member
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
-
Sep 9th, 2000, 10:53 AM
#7
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|