Редагувати

Поділитися через


Windows Forms Controls Used to List Options

You can add a variety of controls to a Windows Form if you want to provide users with a list of options to choose from. Depending on how much you want to restrict your users' input, you can add a ListBox control, a ComboBox control, or a CheckedListBox control. Use the following links to determine which control best suits your needs.

In This Section

When to Use a Windows Forms ComboBox Instead of a ListBox
Recommends an appropriate list-based control depending on the needs and restrictions of your Windows Form.

How to: Access Specific Items in a Windows Forms ComboBox, ListBox, or CheckedListBox Control
Gives instructions for programmatically determining which item in a list appears in a given position.

How to: Add and Remove Items from a Windows Forms ComboBox, ListBox, or CheckedListBox Control
Gives instructions for adding or removing items from a control's list of items.

How to: Create a Lookup Table for a Windows Forms ComboBox, ListBox, or CheckedListBox Control
Gives directions for displaying and storing form data in useful formats.

How to: Bind a Windows Forms ComboBox or ListBox Control to Data
Gives directions for binding a list-based control to a data source.

How to: Sort the Contents of a Windows Forms ComboBox, ListBox, or CheckedListBox Control
Explains how to sort list data at its data source.

Reference

CheckedListBox
Describes this class and has links to all its members.

ComboBox
Describes this class and has links to all its members.

ListBox
Describes this class and has links to all its members.

CheckedListBox Control Overview
Explains what this control is and its key features and properties.

ComboBox Control Overview
Explains what this control is and its key features and properties.

ListBox Control Overview
Explains what this control is and its key features and properties.

Controls to Use on Windows Forms
Provides a complete list of Windows Forms controls, with links to information on their use.