語言

CommonDialog.RunDialog(IntPtr) 方法

定義

當在衍生類別中被覆寫時,會被呼叫以顯示特定類型的 Win32 通用對話框。

protected:
 abstract bool RunDialog(IntPtr hwndOwner);
protected abstract bool RunDialog(IntPtr hwndOwner);
abstract member RunDialog : nativeint -> bool
Protected MustOverride Function RunDialog (hwndOwner As IntPtr) As Boolean

參數

hwndOwner
IntPtr

nativeint

把它帶到擁有對話框的視窗。

傳回

如果使用者點擊對話框的確定按鈕(例如 OpenFileDialog,),SaveFileDialogtrue則返回;否則,false。

備註

最終顯示的對話框會被分配一個擁有者視窗,該視窗由 hwndOwner 參數指定。

適用於