vb.net 200 splash screen - pause for longer

  • Thread starter Thread starter Newbie
  • Start date Start date
N

Newbie

Hi,

In the application properties of my vb.net 2008 project I have set one of my
forms to be the splash screen.

How do I increase the time the splash screen is displayed for. It vanishs to
quick,and I would like it to display for 4 seconds


Thanks
 
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
 
Back
Top