LocationMy.Application.MinimumSplashScreenDisplayTime SyntaxDim result As Integer = _ My.Application.MinimumSplashScreenDisplayTime or: My.Application.MinimumSplashScreenDisplayTime = showTime
DescriptionThe 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 GlanceThis property is only valid in Windows Forms applications. ExampleTo 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
See AlsoApplication Object, SplashScreen Property |