System.Windows.Forms
1.0.5000.0
2.0.0.0
An example of where this interface might be implemented is default and cancel button processing. Default buttons are notified when an unprocessed ENTER key is entered for a form, just like a dialog box would be closed. Similarly, cancel buttons are notified whenever an unprocessed ESC key is entered on a form, much like a dialog box would be dismissed.
Allows a control to act like a button on a form.
Property
System.Windows.Forms.DialogResult
To be added.
When a form is shown as a dialog box using the method and one of its buttons is clicked, the button's value is assigned to the form's property.
Gets or sets the value returned to the parent form when the button is clicked.
1.0.5000.0
2.0.0.0
Method
System.Void
This method is called by a parent form to make a control the default button. Default buttons are set to have an extra thick border.
Notifies a control that it is the default button so that its appearance and behavior is adjusted accordingly.
true if the control should behave as a default button; otherwise false.
1.0.5000.0
2.0.0.0
Method
System.Void
This method is called for the button that has focus, or for the default button (if no other button has focus) when the user presses the ENTER key. This method is also called when the user presses the ESC key if the button is set as the cancel button.
Generates a event for the control.
1.0.5000.0
2.0.0.0