Provide no matching.
Compare the most recently typed letter to the first letter of each entry in the list. (The first match in the list is selected.)
Compare the user's entry and an exact match in an entry from the list.
The matching feature resets after two seconds (six seconds in the Far East version). For example, if you have a list of the 50 United States and you type CO quickly, you will find Colorado. If it takes you longer than two seconds to type CO, however, you will find Ohio first because the auto-complete search resets between letters.
Use ListBox controls to show a list of values from which the user can select one or many values. To create a list box that enables users to select more than one value, you must bind the ListBox control to a Keywords field. List boxes that are bound to Keywords fields have check boxes that allow users to select multiple values, as shown in Figure 6-24. When the user selects multiple values in the ListBox control, the values appear in the view in an Outlook folder as comma-separated values.
Outlook provides two presentation styles for the ListBox control. You can set the style at design time by using the Advanced Properties dialog box for the control or at run time by programmatically setting the ListStyle property.
Plain Each item in the list box is in a separate row. Depending on the setting of the MultiSelect property, the user can select either one row or multiple rows in the control.
Option An OptionButton or CheckBox appears at the beginning of each row. Wth this style, the user selects an item by clicking the option button or check box. Check boxes appear only when the MultiSelect property is set to either Multi or Extended.
To bind the ListBox control to a field
1. In Design mode, right-click the control, and then click Properties on the shortcut menu.
2. On the Value page, do one of the following:
® To bind the ListBox control to an existing field, click Choose Field, point to User-Defined Fields In Folder, and then click the field to which you want to bind the ListBox control. Items selected from this list will appear in the field to which this list is bound.
® To create a Keywords field, click New, and then click Keywords in the Type drop-down list box. With Keywords you can place several values in a single field, depending on what the user selects. These values can be used to group items within a folder, similar to the Categories field of Task items.
® To create a ListBox control without a Keywords field, click Text, Number, Currency, or Date/Time in the Type drop-down list box and then, in the Format dialog box, click to select a format. This information is transient and not stored in a field, but it can be accessed and manipulated by VBScript code. For more information, see Chapter 11.
■When a ListBox control is bound to a Keywords field, multiple values can be selected in the control
Was this article helpful?