Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Create Splash Screen....

Create Splash Screen....

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Niranjan Kulkarni
    wrote on last edited by
    #1

    Hi, I tried creating Splash screen in VB.NET. But when i close it main form also gets closed. I tried opening it from sub main() but same problem. Can any body tell how to create splash screen in VB.NET. Niranjan

    B D 2 Replies Last reply
    0
    • N Niranjan Kulkarni

      Hi, I tried creating Splash screen in VB.NET. But when i close it main form also gets closed. I tried opening it from sub main() but same problem. Can any body tell how to create splash screen in VB.NET. Niranjan

      B Offline
      B Offline
      Binary0110
      wrote on last edited by
      #2

      ok splash screens are easy on the form that serves as the splash screen, put a timer control, then turn enabled to true in the properties, and the interval to whatever you want. 1000=1sec.double click on the timer control and enter me.close Me tells the program that it is only dealing with that one form and close closes the form. If you use End it will close the whole program. BINARY

      N 1 Reply Last reply
      0
      • N Niranjan Kulkarni

        Hi, I tried creating Splash screen in VB.NET. But when i close it main form also gets closed. I tried opening it from sub main() but same problem. Can any body tell how to create splash screen in VB.NET. Niranjan

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Search the articles for "Splash Screen" and you'll find a bunch of examples of how to do it the "right way". RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        1 Reply Last reply
        0
        • B Binary0110

          ok splash screens are easy on the form that serves as the splash screen, put a timer control, then turn enabled to true in the properties, and the interval to whatever you want. 1000=1sec.double click on the timer control and enter me.close Me tells the program that it is only dealing with that one form and close closes the form. If you use End it will close the whole program. BINARY

          N Offline
          N Offline
          Niranjan Kulkarni
          wrote on last edited by
          #4

          In VB.NET if u close first screen even with ME.Close() it closes all other forms. I.e if i open main from from splash screen then it will close that form also....

          B 1 Reply Last reply
          0
          • N Niranjan Kulkarni

            In VB.NET if u close first screen even with ME.Close() it closes all other forms. I.e if i open main from from splash screen then it will close that form also....

            B Offline
            B Offline
            Binary0110
            wrote on last edited by
            #5

            set it up with the timer on the splash screen, then create a module with something like this Module Startup Public Sub Main() Dim frmSplash As New frmSplash Dim frmMain As New frmMain frmSplash.ShowDialog() frmMain.ShowDialog() End Sub End Module make sure that in the timers tick event you put me.close, oh and change the startup object to SubMain and everthing should be fine. BINARY

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups