FileDialog.RunDialog(IntPtr) Method

Definition

RunDialog(IntPtr) is called to display a file dialog in a derived class, such as OpenFileDialog and SaveFileDialog.

protected:
 override bool RunDialog(IntPtr hwndOwner);
[System.Security.SecurityCritical]
protected override bool RunDialog (IntPtr hwndOwner);
override this.RunDialog : nativeint -> bool
Protected Overrides Function RunDialog (hwndOwner As IntPtr) As Boolean

Parameters

hwndOwner
IntPtr

Handle to the window that owns the dialog.

Returns

true if the user clicks the OK button of the dialog that is displayed (for example, OpenFileDialog, SaveFileDialog); otherwise, false.

Attributes

Remarks

The dialog that is eventually shown is assigned an owner window, which is specified by the hwndOwner parameter.

Applies to