Ok

Cancel

Show r Selected Items Only

Microsoft Coolbar Control, version

Location D:\WINNT\System32\COMCT332.00i

Figure 5.19 - You can add additional controls to the Outlook Control Toolbox by using the Custom Controls command and selecting controls in the Additional Controls dialog box. To add additional controls to the Control Toolbox

1. Right-click the bottom of the Controls page in the Control Toolbox, and then click Custom Controls on the shortcut menu.

2. Under Available Controls, click the controls you want to enable, and then click OK. To add a control to a form

• Drag the control from the Control Toolbox to the form. To set Display properties for a control

1. Right-click the control, and then click Properties.

2. On the Display page, set the properties you want. To set Advanced Properties for a control

1. Right-click the control, and then click Advanced Properties.

2. In the Properties window, set the properties you want and then close the window.

Create and Bind Fields

Fields are the means through which information in a control gets saved and shown in an item. Therefore, you need to create fields only for those controls containing information that you want to save in the item. For example, you generally don't need to create an associated field for a Label control, as shown in Figure 5-20, because there's no reason to save the values in such controls to the item. However, for controls in which users enter information, such as the TextBox and ComboBox controls, you usually create a new field or bind an existing field to the control so that the value in the control is saved to the item.

Figure 5.20 - Fields in which the user enters or selects information are generally bound to fields. Create a New Field and Bind It to a Control

When you create a new field by using the Properties dialog box, the field you create is automatically bound to the currently selected control. In addition, the field you create is automatically added to the User-Defined fields in the Folder field set.

To create a new user-defined field

1. Right-click the control, and then click Properties.

2. Click the Value page.

4. In the Name text box, type the field name.

5. If necessary, change the Type and Format of the field, and then click OK twice.

Bind a Control to an Existing Field

In addition to the user-defined fields that you create, Outlook supplies several different sets of fields that you can use. These field sets include Frequently-Used fields, Address fields, Date/Time fields, and All Mail fields. These are built-in fields that, in most cases, perform advanced functions not easily attained with user-defined fields. To select an existing field to bind to a control, you use the Propertiesdialog box, as shown previously in Figure 5-20.

To bind a control to an existing field

1. Right-click the control, and then click Properties.

2. Click the Value tab.

3. Click Choose Field, point to the set of fields you want, and then click the field.

4. If necessary, change the format and set the initial value of the field, and then click OK. Select Fields from Other Forms

Outlook conveniently categorizes fields by the forms with which they're associated. This is often useful if you want to create a form that has many of the same fields as another form. Rather than looking through the User-Defined fields in the Folder field set, you can view a shortened list of fields for a form.

To add a field set from a form to the field list

1. Right-click the control, and then click Properties.

2. Click the Value tab.

3. Click Choose Field, and then click Forms.

4. In the upper left library drop-down list box, click the forms library that contains the forms you want, as shown in Figure 5-21.

5. In the left forms list box, double-click the form to add it to the Selected Forms box.

6. Click Close, and then click OK.

For more information about specifying the type and format for a field, refer to Chapter 6.

Figure 5.21 - You can add a field set from another form to the field list. When to Use the Field Chooser

The Field Chooser allows you to view, add, and delete fields. You add a field by dragging it from the Field Chooser to the form. When you drag a field from the Field Chooser, Outlook adds a control and a control label to the form and automatically binds the control to the associated field. It then automatically positions the controls on the form if the AutoLayout option is selected on the Layoutmenu. The control added to the form depends on the field you add. For example, if you add a Yes/No type field to a form from the Field Chooser, a CheckBox control is added to the form. If you add a Text type field, a TextBox control is added to the form.

In addition to providing a shortcut for adding TextBox and CheckBox controls to a form, the Field Chooser serves several other purposes:

• If you accidentally delete a standard control such as Message, To, or From on a form, you can add it back to the form by dragging it onto the form from the Field Chooser.

• The Field Chooser allows you to delete fields.

• The Field Chooser allows you to view fields available in the active folder and in other forms, as shown in Figure 5-22.

Figure 5.22 - You can drag fields directly from the Field Chooser to the form. To add a field from the Field Chooser

1. On the Field Chooser, click the set of fields you want.

2. Drag the field from the Field Chooser to the form. Delete a Field

To delete a field, you use the Field Chooser. To delete a field

1. On the Field Chooser, click the set of fields you want from the drop-down list box.

2. Click the field you want to delete, and then click Delete.

3. In the message box, click Yes.

Was this article helpful?

0 0

Post a comment