![]() | Type | Description |
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 ).
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