System.Windows.Forms.CommonDialog.ShowDialog Method

Runs a common dialog box with a default owner.

Syntax

public DialogResult ShowDialog ()

Returns

DialogResult.OK if the user clicks OK in the dialog box; otherwise, DialogResult.Cancel.

Remarks

This method implements CommonDialog.RunDialog(IntPtr).

Requirements

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