System.Windows.Forms.Button.NotifyDefault Method

Notifies the System.Windows.Forms.Button whether it is the default button so that it can adjust its appearance accordingly.

Syntax

public virtual void NotifyDefault (bool value)

Parameters

value
true if the button is to have the appearance of the default button; otherwise, false.

Remarks

This method is called by the parent form to notify the System.Windows.Forms.Button that it should be set as the default button and to allow it to adjust its appearance accordingly. Typically, a button that is the default button for a form has a thicker border than other buttons on the form.

Calling the Button.NotifyDefault(bool) method only draws the button as a default button; it does not change its behavior. To make the button behave like a default button, it must be assigned to the Form.AcceptButton property of the System.Windows.Forms.Form.

Requirements

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