WindowsFormsApplicationBase.ShowSplashScreen 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷應用程式是否有設定啟動畫面,若有,則顯示該畫面。
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