O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

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

Using List Controls (ListBox and ComboBox)

The ListBox and ComboBox controls are two of the most common list controls used in Windows applications. They can be used to allow the user to enter data by selecting an item from a list. The ListBox allows both single-selection and multiple-selection, while the ComboBox allows you to type text if you don't find the selection you desire in the list.

The ComboBox control also has a DropDownStyle property that allows the control to be used in one of three modes:

  • DropDown (the default) displays a textbox-like control with an arrow next to it that can be used to drop down the list. An item can be selected from the list or typed into the textbox-like control.

  • Simple displays a textbox-like control with a list ...

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