Show 'Add-in options' dialog via code

Add-in Express™ Support Service
That's what is more important than anything else

Show 'Add-in options' dialog via code
 
Sebastien Lange




Posts: 34
Joined: 2022-09-21
Hi,

I have an Outlook Property Page class (inherit form ADXOlPropertyPage).
Everything works fine and the dialog is accessible via File > Options > Add-ins > Add-ins options...

... But it's a long path and most users won't find it easily, or won't ever know the existence of settings...

I'd like to provide a simple Options button in my menu... Is it possible to open this dialog via code?!?

Best regards,
S?bastien
Posted 21 Dec, 2022 08:19:40 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
Hello S?bastien,

The Outlook object model doesn't provide such a way.

Regards from Poland (GMT+1),

Andrei Smolin
Add-in Express Team Leader
Posted 22 Dec, 2022 05:19:12 Top
Nick L




Posts: 1
Joined: 2023-01-03
In VSTO I did this:
Globals.ThisAddIn.Application.OptionsPagesAdd


You give it a Winform with the following signature:
[ComVisible(true)]
    public partial class OptionsForm : UserControl, PropertyPage


In the ribbon I created a button that would just open that form by itself to the user. It achieves what you're looking for by different means (both places open the same form).
Posted 03 Jan, 2023 14:59:40 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
Hello S?bastien,

Sebastien Lange writes:
Is it possible to open this dialog via code?!?


The Outlook object model doesn't provide a way for you to open a Property page programmatically.

You can create a UserControl with controls on it and then put that UserControl on an ADXOlPropertyPage and on some other form so that the controls are the same. Is this what you are looking for?

Regards from Poland (GMT+1),

Andrei Smolin
Add-in Express Team Leader
Posted 04 Jan, 2023 05:56:42 Top