Reputation: 27322
Simple question but I can't seem to find the answer - can someone tell me which event causes the splash screen to be closed.
I thought it would be either the startupform.Activated or some application level event but I can't find it.
The reason for the question is that I want to control when the splash screen is closed myself - can I do this?
Upvotes: 1
Views: 601
Reputation: 81620
As Cody Gray remarked, the MinimumSplashScreenDisplayTime
property controls this, which was part of an answer I recently posted here: Winform Splash Screen - VB.NET - Timer
Imports System.Collections.ObjectModel
Namespace My
Partial Friend Class MyApplication
Protected Overrides Function OnInitialize(commandLineArgs As ReadOnlyCollection(Of String)) As Boolean
Me.MinimumSplashScreenDisplayTime = 5000
Return MyBase.OnInitialize(commandLineArgs)
End Function
End Class
End Namespace
This code comes from clicking on the "View Application Events" button in "My Project", "Application" tab.
Upvotes: 2