Results 1 to 4 of 4

Thread: Spalsh Screen

  1. #1

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219

    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
    -Rob

  2. #2
    Lively Member
    Join Date
    Jul 2003
    Location
    Kuala Lumpur (Malaysia)
    Posts
    92

    Hmmm....

    Hi,

    Call your splash through Sub Main using the ShowDialog(). Using timer to terminate it...


  3. #3
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872
    - 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.

  4. #4
    Addicted Member The Phoenix's Avatar
    Join Date
    Aug 2003
    Location
    With my wife
    Posts
    142
    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:
    1. Module Module1
    2.     Public Sub Main()
    3. '''''
    4. 'The Splash screen
    5.         Dim frmNewSplash As New Form1()
    6.         frmNewSplash.ShowDialog()
    7. '''''
    8. 'The Main form
    9.         Dim frmNewMain As Form2
    10.         frmNewMain.ShowDialog()
    11.     End Sub
    12. 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
  •  



Click Here to Expand Forum to Full Width