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會傳回, SaveFileDialog) , true 否則 false為 。

備註

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

適用於