xtd 0.2.0
Loading...
Searching...
No Matches

◆ is_default() [2/2]

button_base & xtd::forms::button_base::is_default ( bool  value)
protected

Sets a value indicating whether the button control is the default button.

Parameters
valuetrue if the button control is the default button; otherwise, false.
Remarks
When the xtd::forms::button_base::is_default property is set to true, the button is the default button for the xtd::forms::form. This means that the button is clicked when the ENTER key is pressed if no other button or any other control that captures the ENTER key has focus.
To specify the default button of a form, set the xtd::forms::form::accept_button property of the form to the desired button.