Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vb.net 200 splash screen - pause for longer

34 views
Skip to first unread message

Newbie

unread,
Nov 8, 2008, 9:49:12 PM11/8/08
to
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

James Hahn

unread,
Nov 9, 2008, 2:14:17 AM11/9/08
to
Search MSDN for the MinimumSplashScreenDisplayTime property of the
WindowsFormsApplicationBase class - it contains sample code and instructions
for overriding the default timing of 2s.

http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.applicationservices.windowsformsapplicationbase.minimumsplashscreendisplaytime.aspx

It's also at
ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/fxref_microsoft.visualbasic/html/cd1b02c0-a9f2-f7db-0132-917098bafa05.htm

"Newbie" <new...@nospam.com> wrote in message
news:O5ylIXhQ...@TK2MSFTNGP03.phx.gbl...

kimiraikkonen

unread,
Nov 9, 2008, 9:03:14 PM11/9/08
to

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

0 new messages