|
-
Sep 3rd, 2003, 12:28 AM
#1
Thread Starter
Addicted Member
Spalsh Screen
How do you make a spalsh screen in VB.net. I know you used to able to just make a spalsh screen form in VB 6 but I see thats not the case in .net. I made 2 forms, One is my actuall program and the other is what i want to pop up before my program. Do i use the timer or sumthing? Thanks
-
Sep 3rd, 2003, 02:23 AM
#2
Lively Member
Hmmm....
Hi,
Call your splash through Sub Main using the ShowDialog(). Using timer to terminate it...
-
Sep 3rd, 2003, 02:26 AM
#3
Fanatic Member
- You could use a timer if you like
- You could let the user click, but i wouldn't recommend it
- You could let teh splash screen be visible as long as you main from is loading. I would recommend this,then the user sees the splash screen as long until he can use the main form. If you use a timer it is possible that you let the user wait too long.
- Use the thread tools to Mark your Thread as Resolved when your question is answered.
- Please Rate my answers if they where helpful.
-
Sep 3rd, 2003, 02:45 AM
#4
Addicted Member
You have to create a startup module. Do this by right-clicking on your project name in the solution explorer and selecting "Add" Now select "New Module" After creating your module, you have to create a Sub Main in that new module. Like This:
VB Code:
Module Module1
Public Sub Main()
'''''
'The Splash screen
Dim frmNewSplash As New Form1()
frmNewSplash.ShowDialog()
'''''
'The Main form
Dim frmNewMain As Form2
frmNewMain.ShowDialog()
End Sub
End Module
Now right click on your project again and this time select "Properties". Set the "Startup Object" to "Sub Main". Now the splash screen will appear first, and when you close it using whatever method you want, the main form will appear.
Take my love
Take my land
Take me where I cannot stand
I don't care, I'm still free
You can't take the sky from me...
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
|