ApplicationEvents_11_Event.OptionsPagesAdd Event

Occurs whenever the Options dialog box (on the Tools menu) or a folder Properties dialog box is opened.

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

Syntax

'Declaration
Event OptionsPagesAdd As ApplicationEvents_11_OptionsPagesAddEventHandler
'Usage
Dim instance As ApplicationEvents_11_Event
Dim handler As ApplicationEvents_11_OptionsPagesAddEventHandler

AddHandler instance.OptionsPagesAdd, handler
event ApplicationEvents_11_OptionsPagesAddEventHandler OptionsPagesAdd

Remarks

Your program handles this event to add a custom property page. The property page will be added to the Options dialog box. When the event fires, the PropertyPages collection object identified by Pages contains the property pages that have been added prior to the event handler being called. To add your property page to the collection, use the Add method of the PropertyPages collection before exiting the event handler.

See Also

Reference

ApplicationEvents_11_Event Interface

ApplicationEvents_11_Event Members

Microsoft.Office.Interop.Outlook Namespace

Microsoft.Office.Interop.Outlook.ApplicationEvents_11_OptionsPagesAddEventHandler