Share via


Controls for Displaying Lists

The ListBox and ComboBox controls provide list boxes and drop-down list boxes that the user can scroll through to see options or pieces of information. List boxes can display multiple items, while drop-down list boxes can display one item at a time. However, the user can click the scroll arrow to display and scroll through a list of all the items in the list box.

Tip

If you have space on the form and want to emphasize the choices the user can make, use a list. To conserve space and emphasize the currently selected item, use a drop-down list box.

You can fill a list box or combo box with items from a variety of sources by setting the RowSourceType and RowSource properties. For more information, see How to: Choose the Type of Data for a List or Combo Box.

To see several examples demonstrating list boxes and drop-down list boxes, run Solution.app in the Visual FoxPro directory, ...\Samples\Solution.

In This Section

  • Using Controls
    Controls manage the interactions between users and your application. Visual FoxPro offers a variety of controls to enhance your application interface.

  • Controls and Objects Created in Earlier Versions
    Describes support for controls and objects created in earlier FoxPro versions and new controls added to Visual FoxPro.