'Declaration Protected Property IsDefault As Boolean
'Usage Dim instance As WinButton Dim value As Boolean instance.IsDefault = value value = instance.IsDefault
protected bool IsDefault {get; set;}
'Declaration Protected Property IsDefault As Boolean
'Usage Dim instance As WinButton Dim value As Boolean instance.IsDefault = value value = instance.IsDefault
protected bool IsDefault {get; set;}
When the IsDefault property is set to true, the button is the default button for the 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 AcceptButton property of the form to the desired button.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2