Xceed Grid for WinForms v4.3 Documentation
IsDefault Property


Xceed.Editors.v2.6 Assembly > Xceed.Editors Namespace > WinButton Class : IsDefault Property
Gets or sets a value indicating whether the button is the default button.
Syntax
'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;}

Property Value

true if the button is the default button; false otherwise.
Remarks

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.

Requirements

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

See Also

Reference

WinButton Class
WinButton Members