FileDialog.RunDialog(IntPtr) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
呼叫 RunDialog(IntPtr) 以顯示衍生類別 (Derived Class) 中的檔案對話方塊,例如 OpenFileDialog 和 SaveFileDialog。
protected:
override bool RunDialog(IntPtr hwndOwner);
[System.Security.SecurityCritical]
protected override bool RunDialog (IntPtr hwndOwner);
protected override bool RunDialog (IntPtr hwndOwner);
[<System.Security.SecurityCritical>]
override this.RunDialog : nativeint -> bool
override this.RunDialog : nativeint -> bool
Protected Overrides Function RunDialog (hwndOwner As IntPtr) As Boolean
參數
- hwndOwner
-
IntPtr
nativeint
主控對話方塊之視窗的控制代碼。
傳回
若使用者按一下所顯示之對話方塊 (例如 OpenFileDialog 或 SaveFileDialog) 的 [確定] 按鈕則為 true
;否則為 false
。
- 屬性
備註
最後顯示的對話框會指派擁有者視窗,由 參數指定 hwndOwner
。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應