IBeta Contact tems are added to the folder

Poten Tems
Figure 3.10 - The Potential Beta Participants view with the Beta Contact items

Enter Dates in the Beta Participants View

Now let's assume you want to send beta agreement contracts to those people who agree to participate in the program. To do this, you use the Beta Participants view to enter the date that the beta agreement contracts are sent.

To switch to the Beta Participants view

• On the Outlook Advanced toolbar, click Beta Participants in the Current View drop-down list box. To enter the Beta Agreement Sent date in the fields

• Click the Beta Agreement Sent field for Mike Nash, and then type the date, as shown in Figure 3-11.

Figure 3.11 - The Beta Participants view with dates entered directly in the Beta Agreement Sent fields

Customize the Contacts Form

Up to this point, we've focused on modifying the Beta Contacts application by adding custom views. Now we'll further customize the Beta Contacts application by modifying the built-in Contacts form. In this example, you add a Company Profile page to the Contacts form, shown in Figure 3-12.

Figure 3.12 - The Company Profile page you add to the Contacts form

Open the Contacts Form

To customize a built-in form, first open it as you would to create a new contact. After the form is open, you switch between Design mode and Run mode. To open the Contacts form in Design mode

1. While in the Beta Contacts folder, click the New Contact icon on the Outlook Standard toolbar.

2. On the Tools menu of the Untitled - Contact window, select Forms and then click Design This Form. To switch from Design mode to Run mode

1. On the Form menu, click Run This Form.

2. Close the Run mode window to return to Design mode.

Rename the New Page

The Contacts form provides several additional pages to which you can add controls. Notice that the additional pages are in parentheses; this indicates that the pages are hidden at run time. When you add controls to a page, the parentheses are automatically removed, so the page is visible at run time. For this example, you rename (P.2) to Company Profile.

To rename and show the page

1. In Design mode on the Contacts form, click the (P.2) tab.

2. On the Form menu, click Rename Page.

3. In the Page Name text box, type Company Profile and then click OK.

4. On the Form menu, click Display This Page.

Add Controls to the Form

Now you use the Control Toolbox to add controls to the Company Profile page. After you add a control, you create a new field and then bind the control to the field. In Outlook, a control is the physical component on the form in which the user enters, views, or clicks values. The field is the storage area in which the values from the controls are saved or loaded.

To showthe Control Toolbox

• On the Form Design toolbar, click Control Toolbox.

Add a ComboBox Control

The ComboBox control you add to the Company Profile page allows users to select and view the size of a company, such as Small (1-50), Medium (51-500), or Large (501-1000+).

To add the ComboBox control

• From the Control Toolbox, drag a ComboBox control to the form. Then drag the sizing handle on the right border of the control until the field is approximately the size of the field shown in Figure 3-13.

Set properties for the ComboBox control When you set properties for the ComboBox control, you create a Size Of Company field. When you create a new field for a control from the Properties dialog box, the field is automatically bound to the control. When a control is bound to a field, the values in the control are saved to the field when an item is composed. When an item is opened in a folder, the values from the fields are loaded into the controls.

Figure 3.13 - The ComboBox control is added to the Company Profile page To set properties for the ComboBox control

1. Right-click the ComboBox control, click Properties, and then click the Value tab, shown in Figure 3-14.

3. In the Name text box, type Size of Company and then click OK.

4. In the List Type drop-down list box, select Drop list.

With a Droplist ComboBox control, the user must select a value from the list. A Dropdown ComboBox control, on the other hand, allows the user to type in the value or choose from the list. If you intend to group fields (for example, by company size) based on values in a combo box, it's usually best to specify that the combo box is a Droplist so that you can control the values by which you group items in the folder.

5. In the Possible Values text box, type the following: Small (1-50); Medium (51-500) ¡Large (501-1000+)

6. Select the Set The Initial Value Of This Field To check box, and in the text box below it type "Small (1-50)" and then click OK.

Field to which the CornboBcx control is bound

Figure 3.14- Properties for the Combo Box control

Add a label for the ComboBox control Now you add a label for the ComboBox control to identify the control and to help the user understand the purpose of the control. To add a label

1. From the Control Toolbox, drag a Label control to the form.

2. In the label, select the word Label 1 and then type Size of Company:, as shown in Figure 3-15. Add a TextBox Control

Now you add a TextBox control to the Company Profile page. This control allows users to enter and view a company description on the Company Profile page. To add a TextBox control

• From the Control Toolbox, drag a TextBox control to the form. Then drag the sizing handle on the right border of the control until the field is approximately the size of the field shown in Figure 3-16.

Set properties for the TextBox control Now you create a Company Description field that is automatically bound to the TextBox control. In addition, you select the Multi-Line check box for the control so the user can enter multiple lines of text in it. You also select the Resize With Form check box so the control size is adjusted to the size of the form.

Figure 3.15 - A label is added for the ComboBox control to identify its purpose

i—A TextBox control is added to the form.

S Untitled - Deta Contact (Design)

rile tdit VievJ Insert Format Tolls Actions Form Layout Help

Q Save and Close irijj

Arial

Was this article helpful?

0 0

Post a comment