vb.net 200 splash screen - pause for longer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Newbie

    vb.net 200 splash screen - pause for longer

    Hi,

    In the application properties of my vb.net 2008 project I have set one of my
    forms to be the splash screen.

    How do I increase the time the splash screen is displayed for. It vanishs to
    quick,and I would like it to display for 4 seconds


    Thanks

  • James Hahn

    #2
    Re: vb.net 200 splash screen - pause for longer

    Search MSDN for the MinimumSplashSc reenDisplayTime property of the
    WindowsFormsApp licationBase class - it contains sample code and instructions
    for overriding the default timing of 2s.



    It's also at
    ms-help://MS.VSCC.v90/MS.MSDNQTR.v90. en/fxref_microsoft .visualbasic/html/cd1b02c0-a9f2-f7db-0132-917098bafa05.ht m

    "Newbie" <newbie@nospam. comwrote in message
    news:O5ylIXhQJH A.4256@TK2MSFTN GP03.phx.gbl...
    Hi,
    >
    In the application properties of my vb.net 2008 project I have set one of
    my forms to be the splash screen.
    >
    How do I increase the time the splash screen is displayed for. It vanishs
    to quick,and I would like it to display for 4 seconds
    >
    >
    Thanks

    Comment

    • kimiraikkonen

      #3
      Re: vb.net 200 splash screen - pause for longer

      On Nov 9, 4:49 am, "Newbie" <new...@nospam. comwrote:
      Hi,
      >
      In the application properties of my vb.net 2008 project I have set one ofmy
      forms to be the splash screen.
      >
      How do I increase the time the splash screen is displayed for. It vanishsto
      quick,and I would like it to display for 4 seconds
      >
      Thanks
      Hi,
      You need to specify the required display time by:
      1-Create your splash screen from "add new item" menu.
      2-In project settings, view application tab, and set Splash Screen to
      "your splash screen" from drop down menu.
      3-And your request, click on "View Application Events"
      4-Inside "MyApplicat ion" Class, enter the code using
      "MinimumSplashS creenDisplayTim e" as follows:

      ' Keep splash on screen for 4 seconds
      Protected Overrides Function OnInitialize( _
      ByVal commandLineArgs As _
      System.Collecti ons.ObjectModel .ReadOnlyCollec tion(Of String) _
      ) As Boolean
      Me.MinimumSplas hScreenDisplayT ime = 4000
      Return MyBase.OnInitia lize(commandLin eArgs)
      End Function

      You're done.

      Hope this helps,

      Onur Güzel

      Comment

      Working...