Redigera

Dela via


CheckedListBox Control Overview (Windows Forms)

The Windows Forms CheckedListBox control extends the ListBox control. It does almost everything that a list box does and also can display a check mark next to items in the list. Other differences between the two controls are that checked list boxes only support DrawMode.Normal; and that checked list boxes can only have one item or none selected. Note that a selected item appears highlighted on the form and is not the same as a checked item.

Checked list boxes can have items added at design time using the String Collection Editor or their items can added dynamically from a collection at run time, using the Items property. For more information, see How to: Add and Remove Items from a Windows Forms ComboBox, ListBox, or CheckedListBox Control.

See also