Guaranteed Hits to your web site!












Learn Visual Basic 6.0


3. Exploring the Visual Basic Toolbox


Combo Boxes


Combo Box

  1. The combo box is similar to the list box. The differences are a combo box includes a text box on top of a list box and only allows selection of one item. In some cases, the user can type in an alternate response.

  2. Combo Box Properties:

    Combo box properties are nearly identical to those of the list box, with the deletion of the MultiSelect property and the addition of a Style property.
  3. Combo Box Events:
  4. Combo Box Methods:
    Examples

    cboExample.AddItem "This is an added item" ' adds text string to list
    cboExample.Clear ' clears the combo box
    cboExample.RemoveItem 4 ' removes cboExample.List(4) from list box

  5. You've seen combo boxes before. In the standard 'Open File' window, the File Name box is a combo box of Style 2, while the Drive box is a combo box of Style 3.


Pen Line


Counter Hit Counter Hit


This Homepage is special brought to you by CK Tan
Hosted by www.Geocities.ws

1