O'Reilly logo

A Programmer's Guide to .NET by Alexei Fedorov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required