_FormRegionStartup.BeforeFormRegionShow Method

Allows an add-in to update the user interface of a form region before it is displayed.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Sub BeforeFormRegionShow ( _
    FormRegion As FormRegion _
)
'Usage
Dim instance As _FormRegionStartup
Dim FormRegion As FormRegion

instance.BeforeFormRegionShow(FormRegion)
[DispIdAttribute()]
void BeforeFormRegionShow(
    FormRegion FormRegion
)

Parameters

Remarks

This method lets Outlook pass the FormRegion object to the add-in, and allows an add-in to update the user interface of the form region before it is displayed so that, for instance, the text of labels can be changed or irrelevant content can be suppressed. It is called after the controls are instantiated and the layout is calculated, but before the form region is made visible.

When implementing this method, keep in mind that the item obtained from the FormRegion parameter (that is, the Item property of the FormRegion object) is read-only.

For examples of add-ins in C# and Visual Basic .NET that implement FormRegionStartup, see code sample downloads on MSDN.

See Also

Reference

_FormRegionStartup Interface

_FormRegionStartup Members

Microsoft.Office.Interop.Outlook Namespace