WindowsFormsApplicationBase.ShowSplashScreen 方法

定义

确定应用程序是否定义了初始屏幕,如果定义了初始屏幕,则显示它。

protected:
 void ShowSplashScreen();
protected void ShowSplashScreen();
member this.ShowSplashScreen : unit -> unit
Protected Sub ShowSplashScreen ()

注解

默认情况下,此方法以线程安全的方式调用 OnCreateSplashScreen

方法ShowSplashScreen 包含的代码用于显示启动屏幕,显示时间至少是MinimumSplashScreenDisplayTime属性指定的毫秒数。 若要使用此功能,必须在替代My.Application.MinimumSplashScreenDisplayTimeShowSplashScreen方法的方法中设置OnCreateSplashScreen属性,或使用项目设计器将初始屏幕添加到应用程序。 有关详细信息,请参阅 MinimumSplashScreenDisplayTime

此方法由 OnInitialize 该方法调用。

适用于

另请参阅