Results 1 to 3 of 3

Thread: [2005] Splash screen

  1. #1

    Thread Starter
    Lively Member Amerigo's Avatar
    Join Date
    Dec 2008
    Location
    PSR B1620-26 c-1
    Posts
    126

    Question [2005] Splash screen

    My splash screen comes up for about a quarter second. Why is that? Is there a way to set it's longevity?

    Also, I'm thinking of adding a second splash screen to come up after pressing 'Start' (closing the control panel and starting the application). Is that possible?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] Splash screen

    How are you displaying the splash screen? Are you using the functionality built into the Application Framework, i.e. selecting the form to use as the splash screen in the project properties? If so then it should display for 2 seconds by default.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Member Artur Ramos's Avatar
    Join Date
    Sep 2006
    Location
    Lisbon - Portugal
    Posts
    32

    Arrow Re: [2005] Splash screen

    As also, you must put in the Project properties the Form to use as SplashScreen, you can do this:

    - Add the Timer control to the Form of the SplashScreen.

    - The Interval property controls the time, in miliseconds:

    - For 2 seconds, put 2000
    - For 2,5 seconds, put 2500
    - For 3 seconds put 3000, and what else.

    Use this code to control the Timer1, when you click on the SplashScreen or on the Aplication Screen.

    Code:
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            Try
                Me.Close()
            Catch ex As Exception
                Me.Close()
            Finally
                Me.Close()
            End Try
        End Sub
    I hope this will help you.

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