SplashScreen?  
Author Message
Dr.Virusi





PostPosted: Visual Basic Express Edition, SplashScreen? Top


SplashScreen in Visual Basic 2005 Express Edition
--------------------------------------------------------------------------

When you click "App.exe" open the splashscreen, after 3 second open application how

I create SplashScreen but i don't know code for 3 second.
"After 3 second open application"





Visual Studio Express Editions2  
 
 
Ken Tucker





PostPosted: Visual Basic Express Edition, SplashScreen? Top

In the project menu select add new item and select Splash Screen. In my project make sure the enable application framework check box is checked and select your splash screen in the splash screen combobox.


 
 
spotty





PostPosted: Visual Basic Express Edition, SplashScreen? Top

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.