See Also
Applies To
Combo box, list box
Description
Specifies whether the elements of a combo box or list box are automatically sorted alphabetically; read-only at run time.
Usage
[form.]{ combobox | listbox}.Sorted
Setting
The Sorted property settings are:
Setting Description
True List items are sorted alphabetically (case-insensitive).
False (Default) List items are not sorted alphabetically.
Remarks
When set to True, Visual Basic handles almost all necessary string processing to maintain alphabetical order, including changing the index numbers for items as required by the addition or removal of items.
Note Using the AddItem
Data Type
Integer (Boolean)
Help:
AddItem Method
List Property
ListCount Property
ListIndex Property
RemoveItem Method
Programmer's Guide:
Chapter 3, "Creating and Using Controls"