It is possible to override the default display period of a splash screen in vb.net.
- Add a splash screen to your application if you haven't done so already by selecting Project -> Add New Item.
- Select Splash Screen from the template list.
- Right-click your solution name in Solution Explorer and select Properties.
- Select the Application tab.
- Specify the splash screen form in the Splash Screen drop down box.
- Click the View Application Settings button.
- 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