Near Shore Consulting Ltd.
View Yves Rochon's profile on LinkedIn
Our Blog
Our Blog
Splash Screen display time
Location: BlogsNear Shore Blog    
Posted by: admin 2/4/2006 5:49 AM

It is possible to override the default display period of a splash screen in vb.net.

  1. Add a splash screen to your application if you haven't done so already by selecting Project -> Add New Item.
  2. Select Splash Screen from the template list.
  3. Right-click your solution name in Solution Explorer and select Properties.
  4. Select the Application tab.
  5. Specify the splash screen form in the Splash Screen drop down box.
  6. Click the View Application Settings button.
  7. Override the OnInitialize function by adding the following code:

Protected Overrides Function OnInitialize( _

ByVal commandLineArgs As _

System.Collections.ObjectModel.ReadOnlyCollection(Of String) _

) As Boolean

' Set the display time to 3500 milliseconds (3.5 seconds).

Me.MinimumSplashScreenDisplayTime = 3500

Return MyBase.OnInitialize(commandLineArgs)

End Function

 

Permalink |  Trackback
Blog
Near Shore Consulting  |  Terms Of Use  |  Privacy Statement