共用方式為


WindowsFormsApplicationBase.ShowSplashScreen 方法

定義

判斷應用程式是否有設定啟動畫面,若有,則顯示該畫面。

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

備註

預設情況下,此方法以執行緒安全的方式呼叫 OnCreateSplashScreen

ShowSplashScreen 方法包含程式碼,至少顯示啟動畫面的數千毫秒,時間至少依該 MinimumSplashScreenDisplayTime 屬性指定。 要使用此功能,您必須在某個方法中設定 My.Application.MinimumSplashScreenDisplayTime 該屬性以覆蓋 ShowSplashScreen OR OnCreateSplashScreen 方法,或使用 Project Designer 將啟動畫面加入應用程式。 如需詳細資訊,請參閱MinimumSplashScreenDisplayTime

此方法由 稱為 。OnInitialize

適用於

另請參閱