0

I am in the process of implementing an add-in for outlook. I am currently implementing all messages with the MessageBox. As this is not a nice solution, I would like to display the messages via a reading pane or something similar. How can I implement this in Vsto with C#? Or is there a better solution?

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
Ni Na
  • 15
  • 4

2 Answers2

1

You may consider creating a form region in Outlook. See Create Outlook form regions for more information. Also you may find the Walkthrough: Design an Outlook form region helpful.

Another option is custom task panes in Outlook. Read more about that in the Walkthrough: Display custom task panes with email messages in Outlook article.

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
1

Task panes would be a good option for displaying any information in a non-modal fashion (see https://learn.microsoft.com/en-us/visualstudio/vsto/walkthrough-displaying-custom-task-panes-with-e-mail-messages-in-outlook?view=vs-2022).

Note that unlike Outlook form regions, task panes give you full control over when they are shown and hidden.

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78