System.Windows.Forms.IButtonControl.DialogResult Property

Gets or sets the value returned to the parent form when the button is clicked.

Syntax

public DialogResult DialogResult { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When a form is shown as a dialog box using the Form.ShowDialog method and one of its buttons is clicked, the button's IButtonControl.DialogResult value is assigned to the form's Form.DialogResult property.

Requirements

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