MinimumSplashScreenDisplayTime Property


MinimumSplashScreenDisplayTime Property

Location

My.Application.MinimumSplashScreenDisplayTime

Syntax

     Dim result As Integer = _        My.Application.MinimumSplashScreenDisplayTime 

or:

 My.Application.MinimumSplashScreenDisplayTime = showTime 


showTime (required; Integer)

The minimum number of milliseconds that the application's splash screen should be displayed.

Description

The MinimumSplashScreenDisplayTime property gets or sets the number of milliseconds specified for display of the application's "splash screen," the screen that first appears when the application is run. At the earliest, the application's "main form" will not be displayed until this minimum time has elapsed.

Usage at a Glance

This property is only valid in Windows Forms applications.

Example

To set this property, you will need to override one of the application framework events, either OnInitialize or OnCreateSplashScreen.These are methods of the WindowsFormsApplicationBase class; you can override them in the ApplicationEvents.vb file. For instance, to set this value in the OnCreateSplashScreen method, use code similar to the following block.

 Namespace My    Partial Friend Class MyApplication       Protected Overrides Sub OnCreateSplashScreen()          ' ----- Show the splash screen for 3 seconds.          My.Application.MinimumSplashScreenDisplayTime = 3000          MyBase.OnCreateSplashScreen()       End Sub    End Class End Namespace 

Related Framework Entries

  • Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.MinimumSplashScreenDisplayTime Property

See Also

Application Object, SplashScreen Property




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net