event CheckStateChanged ()
Occurs when the control's check box state has been changed

TypeDescription

The CheckStateChanged event notifies your application that user changes the checkbox state. Use the HasCheckBox property to associate a checkbox to the editor. Use the CheckState property to retrieve the state of the editor's checkbox. The PartialCheck property specifies whether the checkbox of the editor allows two ( unchecked, checked ) or three states ( unchecked, checked and partial-checked ).

Syntax for CheckStateChanged event, /NET version, on:

private void CheckStateChanged(object sender)
{
}

Private Sub CheckStateChanged(ByVal sender As System.Object) Handles CheckStateChanged
End Sub

Syntax for CheckStateChanged event, /COM version, on:

private void CheckStateChanged(object sender, EventArgs e)
{
}

void OnCheckStateChanged()
{
}

void __fastcall CheckStateChanged(TObject *Sender)
{
}

procedure CheckStateChanged(ASender: TObject; );
begin
end;

procedure CheckStateChanged(sender: System.Object; e: System.EventArgs);
begin
end;

begin event CheckStateChanged()
end event CheckStateChanged

Private Sub CheckStateChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckStateChanged
End Sub

Private Sub CheckStateChanged()
End Sub

Private Sub CheckStateChanged()
End Sub

LPARAMETERS nop

PROCEDURE OnCheckStateChanged(oEditor)
RETURN

Syntax for CheckStateChanged event, /COM version (others), on:

<SCRIPT EVENT="CheckStateChanged()" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function CheckStateChanged()
End Function
</SCRIPT>

Procedure OnComCheckStateChanged 
	Forward Send OnComCheckStateChanged 
End_Procedure

METHOD OCX_CheckStateChanged() CLASS MainDialog
RETURN NIL

void onEvent_CheckStateChanged()
{
}

function CheckStateChanged as v ()
end function

function nativeObject_CheckStateChanged()
return

The following sample associates a check box to the editor and prints the state of the check box when user clicks the editor's checkbox area.

Private Sub Editor1_CheckStateChanged()
    With Editor1
        Debug.Print "The user changes the state of the editor's checkbox to " & .CheckState
    End With
End Sub

Private Sub Form_Load()
    With Editor1
    
        .EditType = DropDownList
        .AddItem 1, "One"
        .AddItem 2, "Two"
        
        .HasCheckBox = True
        
        .Value = 1
    End With
End Sub