9.5. List controls

The ListControl class serves as a base class for two Windows controls – ListBox and ComboBox. Figure 9.21 shows the ListControl class and its derived classes (CheckedlistBox will be covered later in this chapter as an extension of this class of controls).

Figure 9.21. The ListControl class is the basis of two controls

Let’s look briefly at the main properties, methods, and events of the ListControl class:

  • DisplayMember This String property indicates which property of the object to show if the list control contains objects that support properties.

  • SelectedIndex This Integer property indicates the zero-based index of the selected ...

Get A Programmer's Guide to .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.