SplashScreen.Show 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
顯示啟動畫面。
多載
| 名稱 | Description |
|---|---|
| Show(Boolean) |
顯示啟動畫面。 |
| Show(Boolean, Boolean) |
顯示啟動畫面。 |
Show(Boolean)
顯示啟動畫面。
public:
void Show(bool autoClose);
[System.Security.SecurityCritical]
public void Show(bool autoClose);
public void Show(bool autoClose);
[<System.Security.SecurityCritical>]
member this.Show : bool -> unit
member this.Show : bool -> unit
Public Sub Show (autoClose As Boolean)
參數
- autoClose
- Boolean
true 自動關閉啟動畫面; false 手動關閉啟動畫面。
- 屬性
例外狀況
無法找到建構子中指定的資源。
備註
如果你呼叫 Show 該方法,設定 autoClose 為 true,則不必再呼叫該 Close 方法。 應用程式載入後,啟動畫面會自動關閉。 當啟動畫面關閉時,它淡出所需的時間由參數的預設值 fadeoutDuration 決定,該值為 300 毫秒。
當你想提供淡出持續時間的非預設值時,呼叫 ShowautoClose 設定為 的方法 false 。 你必須呼叫 Close 方法來關閉啟動畫面。
另請參閱
適用於
Show(Boolean, Boolean)
顯示啟動畫面。
public:
void Show(bool autoClose, bool topMost);
[System.Security.SecurityCritical]
public void Show(bool autoClose, bool topMost);
public void Show(bool autoClose, bool topMost);
[<System.Security.SecurityCritical>]
member this.Show : bool * bool -> unit
member this.Show : bool * bool -> unit
Public Sub Show (autoClose As Boolean, topMost As Boolean)
參數
- autoClose
- Boolean
true 自動關閉啟動畫面; false 手動關閉啟動畫面。
- topMost
- Boolean
true 如果開場畫面視窗應該使用WS_EX_TOPMOST風格;否則 false。
- 屬性