Spread Windows Forms 13.0 Product Documentation
FarPoint.Win Assembly / FarPoint.Win Namespace / FpCheckBox Class / AutoCheck Property


In This Topic
    AutoCheck Property
    In This Topic
    Gets or sets whether the user can toggle the state of the check box control by clicking the control or by pressing the spacebar when the control has the focus.
    Syntax
    'Declaration
     
    Public Overridable Property AutoCheck As Boolean
    'Usage
     
    Dim instance As FpCheckBox
    Dim value As Boolean
     
    instance.AutoCheck = value
     
    value = instance.AutoCheck
    public virtual bool AutoCheck {get; set;}

    Property Value

    true to automatically check; false otherwise
    Remarks

    When this property is set to true, the user can click the control to return the focus to the control and to toggle the state of the control between true and false, or between true, false, and indeterminate in a three-state control. Pressing the spacebar toggles the state of the control when it has the focus.

    When this property is set to false, you must provide code that toggles the state of the control if you want the control to change state when the user clicks the control or presses the spacebar.

    See Also