DefaultButton Property

The DefaultButton property enables you to make the selected button control the default when the end user presses the Enter key.

Note: Make sure that you do not have another button first in the tab order. The tab order will override the DefaultButton property.

Applies to: Buttons.

Setting dynamically:

Winform Set form.button.DEFAULTBUTTON TO {0|1};

Property Settings:

0 - No

Disables the default button feature (the default).

1 - Yes

Enables the default button feature.