Sebastien Lange
Posts: 36
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 |
|
Andrei Smolin
Add-in Express team
Posts: 19138
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 |
|
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). |
|
Andrei Smolin
Add-in Express team
Posts: 19138
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 |
|