Represents a Microsoft Outlook folder. A MAPIFoider object can contain other MAPIFoider objects, as well as Outlook items, You can navigate nested folders by using a combination of I (¿1 asx'i, which returns a folder within a name space or another folder and the Parent property, which returns the containing object.
«J basRegistry basiAPl Class Modules cIsAssistantProperties cIsTimer
■Auto List displays a drop-down list of members for the MAPIFoider object variable named ObjC
The Help window lets you drill down inl properties and methods of an object.
Figure 2.9 - Auto List Members saves on typing and reduces errors.
Visual Basic UserForms provide dialog boxes in the Outlook application environment. The intrinsic controls that you place on UserForms are the same as the Forms 2.0 controls used with Outlook custom forms. In Outlook VBA, all the properties, methods, and events of the control are exposed when the controls are placed on a UserForm. No longer are you limited to just the Click event of Forms 2.0 controls on an Outlook form. You can also place extrinsic ActiveX controls on your UserForm. Figure 2-10 depicts a UserForm that uses the Outlook View control, an ActiveX control that's an integral component of Outlook 2002. The versatile View control lets you display views on forms or HTML pages.
To add a UserForm to your Outlook VBA project
1. On the Visual Basic Insert menu, click UserForm.
2. On the Visual Basic View menu, click Toolbox.
3. Drag and drop controls from the Control Toolbox onto the UserForm.
4. Select the control on the UserForm, and press F4 to display the Properties window.
5. Set UserForm and control properties in the Properties window.
Although you might not think of command bars as design tools, they are essential to the design of a custom user interface for Outlook. Command bars are now completely programmable in both the Explorer and inspector windows. You can program an Outlook command bar to display built-in or custom dialogs, launch other applications, or open custom forms. Figure 2-11 shows two custom command bars in the Outlook Explorer window. The New Call dialog box that you see in Figure 2-11 appears when a user clicks the Dial Phone command bar button on the Create Shared Items toolbar. We'll examine both of these command bars in detail in subsequent chapters.
Like command bars, the Outlook Bar is also completely programmable in Outlook 2002. While not a design tool per se, you should think of the Outlook Bar as a design element when you create a custom application. Outlook Bar shortcuts can goto a URL, open a file on a local or networked drive, or launch an application. Figure 2-11 shows a custom Outlook Bar group that works in conjunction with the displayed Companies folder.
i—The Item Command bar Is available in all folders.
K Companies - Microsoft Outlook
! jle Edit View Favorite; Tools Actions Help £i|New - # P} X Y Mpttfc i^Find ^ Ü Type ¿contact to hnd .
choose Form,,, New; Company ^ Dial Phone [¿il Shared Mail Shared Contact Shared tournai Shared Appointment v| Shared Task
Typp a qi iRshinn Fnr hfilp ▼
M Hew Call
Outlook Shortcu. Customer/Contact: | Cactus Comldas para llevar My Shortcuts Number to Dial: | 135-5555|
Create a Shared Journal Ent'y when you dial ¡"his number
Was this article helpful?