Monday, April 23, 2012

Created in Outlook 2010 form regions


Microsoft Outlook 2010 provides for developers to use custom element called form regions in Outlook 2010 user interface. Form regions, you can extend the project, such as messages, contacts or task items in Outlook 2010. Because the reading pane to display the form region, can create interesting, context-sensitive data, in addition to the items selected Outlook 2010 add-ins. Microsoft Visual Studio Tools for the Microsoft Office system, with an Outlook form region designer greatly simplifies the development of the 2010 Outlook form regions.

If your form region is simple, to create a part of it requires very little code or effort.
The following steps show how to create a simple Outlook 2010 form regions.

To create an Outlook 2010 form regions

Start Microsoft Visual Studio 2008.

In the File menu, point to New, and then click Project. New Project dialog box.

Under the project type, expand the Visual C #, and then expand Office.

Select 2010, and then choose "Outlook add-ins. Name attached to the TestFormRegion.
In the Solution Explorer, select TestFormRegion project.

Press Ctrl + Shift + A to add a new project.

In the Add New Item "dialog box, select the" Outlook form regions, and then click "Add".

Select the adjacent options, and then click "Next".

Form regional test form region name, and click "Next."

In the last dialog box, accept the default selection (Mail), then click Finish.

From the Toolbox window, drag a label to the form region design surface.

Right-click the form region design surface and select "View Code".

Method modify the FormRegionShowing as follows.

Press the F5 key to run the project in debug mode.

Looking ahead to 2010, please note, you can see the Reading Pane in the test form regions, when you view the mail items. In addition, noted Label1 reflect the e-mail address of the current project.

In earlier versions of Office, Visual Studio Tools for the development of a custom form region, you design a form region in Outlook 2010. Then, create a manifest file, the RequestService performed FormRegionStartup in Outlook 2010 add-in interface to add a registry entry to specify the location of the list, create a form region class package in the form you created in Outlook 2010, covering the methods in your tied to return to the form region class.

Visual Studio Tools for Office you deal with all these details. Therefore, developing Outlook form regions, similar to the process to create a standard Windows Forms user control.

The type of form region

The next element in the list of property is FormRegionType element. Add to your office systems project Visual Studio Tools for form regions, you can choose to add a form region type. If you later change your mind, you can change the form regions the type FormRegionType property. There are four kinds of forms of the region:

Adjacent. Adjacent form regions in addition to a standard or customized form. They appear in the Inspector window or read a special area of ​​the bottom of the pane.

Replaced. Replacement form region to replace the default form of form regions replace the item. You can only use replacement, and replacement of all form regions with a custom message class.

Replacement of all. Similar replacement form region to replace all forms of regional delete all form pages, and displays to replace the download microsoft outlook 2010 message class, together with other forms of the project registered in all form regions.

Separate. Separate form regions adjacent form regions, they strengthen the existing forms are similar. However, in the form unlike adjacent regions, a separate form region as an additional form page. To display a separate form regions, click a button to display the Microsoft Office Fluent Ribbon group.

No comments:

Post a Comment