How to Easily add a Preconfigured SplashScreen with Visual Basic 08, VB 2010, and newer

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 5.00 out of 5)
 

This little tip is only to show how to very simply add a default Preconfigured Splashscreen to your project, not really anything beyond that 🙂 This feature is available in VB 2005, Visual Basic.NET 2008, Visual Basic 2010, and higher. The first thing you want to do is goto the “Project” menu and click on.. “Add New Item”. IT will then display a window with the available objects you can add to your project. Find and Click on the “SplashScreen” object. IT will then add the object to your project. Now all you have to do is simply go back to the “Project” menu and click on your projects “Properties” selection. On the “Application” tab your will see a option for “Splash Screen”. In that combobox simply select the new Splash Screen form you added earlier. Now your project will show that splash form when your program is loading. The default splashscreen is probably not how you want it to be for your application, so you can design the splashscreen form however you like. There is a feature for your Splashscreen that you might want to use. Its called: MinimumSplashScreenDisplayTime. As the name suggests, it will set the minimum time that your splashscreen will be visible via a milli-seconds value. IF you set it to 5000(ms), then your splashscreen will stay opened for 5 seconds before your main application form is loaded. Edit: Click here to see how to add the code  in Application Events. Example:

My.Application.MinimumSplashScreenDisplayTime = 1000


Well, that’s all there is to it to add a preconfigured default Splash screen form to your projects. Remember this tip will ONLY work with Visual Basic 2005 and Visual Basic 2008. Or as some like to call Visual Basic 8 and Visual Basic 9. Have fun 🙂

          Jason

Revised: 2015

9 thoughts on “How to Easily add a Preconfigured SplashScreen with Visual Basic 08, VB 2010, and newer

  1. Denise

    I’m working with VB 2005. I need to create a splash screen for this application: timekeeping system for employees. When the login form is closed, display the main form. The main form should display the user’s full name in the form’s title bar.
    Please help!

    Reply
  2. Maryam

    this info is very very useful for me while making my project.
    but i am unable to set timer on splashscreen.
    kindly help.

    thanks!!!

    Reply
  3. Jason Post author

    I’m not sure how your implementing the splash screen. Not sure why you would put it on a thread other than the main application thread.

    But anyways, you can use the code below to stop the crossthread error…

    System.Windows.Forms.Form.CheckForIllegalCrossThreadCalls = False

    Reply

Leave a Reply

Your email address will not be published.