Results 1 to 4 of 4

Thread: How to use splash screen

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    243

    How to use splash screen

    Hi

    I add the splash screen to my application from add item. then i set my splasch screen should be visible for 30 s.. then the apllication should display my form. i write the code for that in application events.vb

    my code is:

    Code:
    Partial Friend Class MyApplication
            Protected Overrides Function OnInitialize( _
                ByVal commandLineArgs As  _
                System.Collections.ObjectModel.ReadOnlyCollection(Of String) _
            ) As Boolean
                ' Set the display time to 5000 milliseconds (5 seconds). 
                Me.MinimumSplashScreenDisplayTime = 3000
    
    
                Return MyBase.OnInitialize(commandLineArgs)
            End Function

    But this code never solve my problem.. When i run the programme the splash screen display but it dont want to close?

    How can i fix this problem

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

    Re: How to use splash screen

    First up, 3000 milliseconds is 3 seconds, not 30.

    As for the question, did you select your splash form as the Splash screen or as the Startup Form? You need to select it as the Splash Screen for it to be dismissed automatically. You select the form you want displayed after the splash screen as your Startup Form.
    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

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    243

    Re: How to use splash screen

    i did all that things but still can not? what is the problem

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

    Re: How to use splash screen

    I an only assume that you've done something wrong but there's no way we can tell you what it might be from the information you've provided. Try the attached project.
    Attached Files Attached Files
    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

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