Sorted

This property returns a value that indicates whether the elements of a control are automatically sorted alphabetically.

Syntax

object.Sorted

Parameters

object
Object expression that evaluates to a ComboBox or ListBox control.

Return Values

The Sorted property is read-only.

The following table shows the return values for the Sorted property.

Setting
Description
True List items are sorted by character code order.
False (default) List items are notsorted alphabetically.

Remarks

When this property is True, Visual Basic for Windows CE handles almost all necessary string processing to maintain alphabetic order, including changing the index numbers for items as required by the addition or removal of items.