|
CheckedListBox
As the name says, CheckedListBox is a combination of a ListBox and a CheckBox. It
displays a ListBox with a CheckBox towards it's left. The CheckedListBox class is
derived from the ListBox class and is based on that class.
Since the CheckedListBox is derived from the ListBox it shares all the members of
ListBox. Below is the Image of a CheckedListBox.
Notable Properties of CheckedListBox
The notable property in the appearance section of the properties window is the ThreeDCheckBoxes property
which is set to False by default. Setting it to True makes the CheckedListBox to be
displayed in Flat or Normal style.
Notable property in the behavior section is the CheckOnClick property
which is set to False by default. When set to False it means that to check or uncheck
an item in the CheckedListBox we need to double-click the item. Setting it to True
makes an item in the CheckedListBox to be checked or unchecked with a single click.
Notable property in the Data section is the Items property
with which we add items to the CheckedListBox.
Private Sub CheckedListBox1_SelectedIndexChanged(ByVal sender As System.Object,_
ByVal e As System.EventArgs) Handles CheckedListBox1.SelectedIndexChanged
End Sub
|
Working with CheckedListBoxes is similar to working with ListBoxes. Please refer to
examples in that section here.
|