Share via


FileDialog.RunDialog(IntPtr) 方法

定義

呼叫 RunDialog(IntPtr) 以顯示衍生類別 (Derived Class) 中的檔案對話方塊,例如 OpenFileDialogSaveFileDialog

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

主控對話方塊之視窗的控制代碼。

傳回

若使用者按一下所顯示之對話方塊 (例如 OpenFileDialogSaveFileDialog) 的 [確定] 按鈕則為 true;否則為 false

屬性

備註

最後顯示的對話框會指派擁有者視窗,由 參數指定 hwndOwner

適用於