System.Windows.Forms.CommonDialog.RunDialog Method

When overridden in a derived class, specifies a common dialog box.

Syntax

protected abstract bool RunDialog (IntPtr hwndOwner)

Parameters

hwndOwner
A value that represents the window handle of the owner window for the common dialog box.

Returns

true if the dialog box was successfully run; otherwise, false.

Remarks

This method is invoked when the user of a common dialog box calls CommonDialog.ShowDialog, and it must be overridden by inherited classes of System.Windows.Forms.CommonDialog to implement a specific common dialog box.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0