Xceed Grid for WinForms v4.3 Documentation
NotifyDefault Method


Xceed.Editors.v2.6 Assembly > Xceed.Editors Namespace > WinButton Class : NotifyDefault Method
true if the button is to have the appearance of the default button; false otherwise.
Notifies the button whether it is the default button so that it can adjust its appearance accordingly.
Syntax
'Declaration
 
Public Overridable Sub NotifyDefault( _

   ByVal value As Boolean _

) 
'Usage
 
Dim instance As WinButton

Dim value As Boolean

 

instance.NotifyDefault(value)
public virtual void NotifyDefault( 

   bool value

)

Parameters

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

This method is called by the parent form to notify the 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 NotifyDefault 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 AcceptButton property of the form.

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