FormRegionStartup.BeforeFormRegionShow method (Outlook)

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

Syntax

expression. BeforeFormRegionShow( _FormRegion_ )

expression A variable that represents a 'FormRegionStartup' object.

Parameters

Name Required/Optional Data type Description
FormRegion Required FormRegion The FormRegion object representing the form region that is to be displayed.

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's 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

FormRegionStartup Interface

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.