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 "MyApplication" Class, enter the code using
"MinimumSplashScreenDisplayTime" as follows:
' Keep splash on screen for 4 seconds
Protected Overrides Function OnInitialize( _
ByVal commandLineArgs As _
System.Collections.ObjectModel.ReadOnlyCollection( Of String) _
) As Boolean
Me.MinimumSplashScreenDisplayTime = 4000
Return MyBase.OnInitialize(commandLineArgs)
End Function
You're done.
Hope this helps,
Onur Güzel