Info

General Company Profile (p,3) ]

y Edit Compose Page Edit Read Page

Type a question for help fP

.4) ] (P.5) t'P.6) ] Details Activities Certificates All Fields (Properti

Figure 3.16-/4 TextBox control is added to the Company Profile page To set properties for the TextBox control

1. Right-click the TextBox control, click Properties, and then click the Value tab.

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

4. Click the Display tab.

5. Select the Resize With Form check box.

6. Select the Multi-Line check box.

Add a label for the TextBox control Now you add a label for the TextBox control so users know the purpose of the control. To add a label

1. From the Control Toolbox, drag a Label control to the form, and position it to the left of the TextBox control.

2. In the label, first select the word Label2 and then type Company Description:.

3. To resize the label, drag the sizing handle on the right border of the label until all text in the label is visible. Add a CheckBox Control

Finally you add a CheckBox control to the form. This control allows users to specify that a company is a current customer. To add a CheckBox control

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

2. Click the CheckBox control, and then type Current Customer, as shown in Figure 3-17.

Set properties for the CheckBox control Next you create a Current Customer field to which the CheckBox control is bound. To create the Current Customer field

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

3. In the Name text box, type Current Customer.

4. In the Type drop-down list box, click Yes/No.

5. In the Format drop-down list box, click Icon and then click OK twice.

Figure 3.17 -A CheckBox control is added to the Company Profile page

Set Form Properties

The Properties page of the form shown in Figure 3-18 lets you name the form and specify a contact in case someone has suggestions for improvements or problems with the form. To set form properties

1. Click the Properties tab.

2. In the Version text box, type 1.0.

3. In the Form Number text box, type 1-1.

4. In the Contact text box, type your name, and in the Description text box, type the following: Use this form to post, view, and update Beta Contact items in the Beta Contacts folder.

Figure 3.18 - The Properties page of the Beta Contact form

For more information about setting form properties, see Chapter 5, "Forms."

Test the Form at Design Time

Before you save a form or publish a form to a folder, it's a good idea to run the form to see how the form layout appears at run time. With Outlook, you can easily switch between Design mode and Run mode for the form.

To switch from Design mode to Run mode

1. With the Compose page in Design mode, click Run This Form on the Form menu. View the Compose page of the form.

2. To test the Read page, send the form to your Inbox. Double-click the item in your Inbox to view the Read page of the form.

3. To return to Design mode, close the Run mode window.

Publish the Form

After you run the form and you're satisfied with its layout, you can publish the form in the Beta Contacts folder. When you publish the form, it is saved and registered in the Beta Contacts folder Form Library. Also, a menu item appears for the form on the Actions menu of the folder.

Forms with the same name, but different contents, may produce unpredictable results. For example, the Beta Contacts form in the Beta Contacts folder (Building Outlook 2002 Applications) and the Beta Contacts form in the Beta Contacts folder (Design Environment) should be identical. If they are not, unique names should be assigned, or the forms should be updated using Forms Manager. For further information, see "The Forms Manager" in Chapter 13, "Distributing and Securing Applications."

To publish the form to the Beta Contacts folder Form Library

1. On the Tools menu, choose Forms and then click Publish Form As.

2. In the Display text box and the Form Name text box, type Beta Contact, as shown in Figure 3-19.

Was this article helpful?

0 0

Post a comment