SplashScreen Help!

Hi I need help w/ my SplashScreen all i want it to do is Show another Form after it has been on the screen for like 5 seconds



Answer this question

SplashScreen Help!

  • jneilb

    1. 2005 Express VB.

    2. Small Login Form With Password input only.

    3. If your refering to the splashscreen its the Template in 2005 VB Express Just edited for my program.

    4. Yes.

    5. I want it for looks.


    Hope those answers help.


  • rodolfosp

    So, did you create the splash screen - using the splash screen form template or did you just create another form

    Did you modify this form in any way

    I've seen this occur before when I tried creating my own form outside of the template and/or modified the default code template form.

    Are you using 2005 or Express     What is you startup object    

    Does it work for any application or just this one   If you create windows project with a simple form and a splash screen - does this splash screen work.

     


  • Joel Clipperton

    Okay, If that's what you want, why not just put a delay in the form load event, of the startup form (login form)

    The Splashscreen will stay for as long as the startup form is loading - so stop it from finshing loading (system.threading.thread.sleep)



  • sic0198

    If your using VB Express / 2005 then you can simply add a new splash screen form.

    In you project use Project -> Add New Item -> Select Splash screen template

    Then select this by going to solution explorer -> My Project -> Application and set the splash screen to the splash screen you have just created.

    Whne you application starts up it will display the splash screen.

     

    The Splash screen provides a template - but you can remove the controls on the form / Change the layout / graphics etc.   Try it first using the defaults and then chnage things as needed.

     

     

     

     


  • xtw

    Adding another question:

    Why do you need a splash screen Why not go straight to the login form



  • Trevor E Hilder

    I know how to add it but when it shows up when my app is started it just sits there and doesnt go to the Form i want it to.

    I want it to go to my Login form after like 5 seconds can you help with that


  • vec7or

    Did you modify this form in any way So the answer is Yes I did modify the form

    1. Are you using 2005 or Express

    2. What is you startup object

    3. Does it work for any application or just this one

    4. If you create windows project with a simple form and a splash screen - does this splash screen work

    So please answer the 4 remaining questions - If you do what you proposing then this may not work either as the process that is causing the splash screen to not work correctly may still be in place.

    I'm not sure if you may be encountering some exception and swallowing the exception instead of reporting it but here have been some issues with exceptions occuring on splash screen functionality

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=457947&SiteID=1

    You may want to do a search of splash screens in the forums and read some of the threads to see if this is related to you issue.

    Adjusting the time
    By default, the Splash screen will be displayed for 2 seconds, but you can set the display time to any length of time using the MinimumSplashScreenDisplayTime property - see: http://msdn2.microsoft.com/en-us/library/ms234874(en-US,VS.80).aspx


  • monkeycz

    Leave everything as is (you know - you did't have to change the text on your splash screen - it gets chagned automatically at runtime).

    All you need to do is set the Login form to be the startup form and then set the application to exit when all forms are closed (instead of exiting when the startup form is closed).



  • Luc Pettett

    I added the template and only edited background picture and text.

    Could i just put a timer and hide it and when the timer ends it goes to the Login form


  • wilbour

    You need to set your startup form to whatever your login form is on your project's properties, on the Application tab. After that select the splash screen on the field at the bottom. That will take care of the setup of your splash screen.

    Now, in order to change the time the splash screen is displayed, go to the Application.Designer.vb under Application.myapp which is under My Project on the solution explorer and paste the following code:

    Protected Overrides Function OnInitialize(ByVal commandLineArgs As System.Collections.ObjectModel.ReadOnlyCollection(Of String)) As Boolean

    'Set the splash screen timeout.

    Me.MinimumSplashScreenDisplayTime = 4000

    Return MyBase.OnInitialize(commandLineArgs)

    End Function

    Paste it just before the End Class statement. Of course, you can change the 4000 to whatever value you want in milliseconds. Have fun.


  • SplashScreen Help!