0
votes

I created a form in outlook in which I want to get user input and send this details on button click. For this purpose I am using form (form region) in outlook VSTO.

I tried Application.Quit(), but it closes outlook completely. I don't have option Application.Close() it doesn't come up in options

I want to close this window on button click (after sending mail) and go to explorer window (main outlook window)

1

1 Answers

1
votes

Outlook object model does not provide any method to show or hide an adjoining outlook region at runtime. You may try to use the Hide method which the form region class provides (from the base Control class).

You may find similar issues:

However, you can prevent the form region from displaying at runtime, see How to: Prevent Outlook from displaying a form region for more information.

Also, you may consider using Advanced Outlook view and form regions built by Add-in Express. They provide the required methods and properties for hiding and closing form regions at runtime.