To add a splash screen and adjust the splash screen duration.
1. Add the splash screen form to the project (ensure you use the splash screen template from add new forms)
2. Open Solution explorer and select My Project
3. Select the splash screen from in the splash screen dropdown listbox on the application tab.
4. Click on the Application Events button on the application tab
5. Enter the following code in Partial Friend Class MyApplication
'//Additional Code to chnage the default splash screen time Protected Overrides Function OnInitialize(ByVal commandLineArgs As System.Collections.ObjectModel.ReadOnlyCollection(Of String)) As Boolean Me.MinimumSplashScreenDisplayTime = 5000 Return MyBase.OnInitialize(commandLineArgs) End Function
6. Adjust the duration - at the momnet its set to 5 seconds (5000 milliseconds), adjust to appropriat value.
Thats it.
|