Invoking a .Net winform form Outlook

G

GHQ Dev

Hello All,

I have developed an Add-In for outlook in C# , its simply a CommandBarButton
that when clicked invoke a .Net winform Form, I invoke the form like this in
the button event handler
Form myForm = new MyForm();
myForm.ShowDialog()

My Question is:
- is this the right way to invoke the winform from outlook?
- when the form is invoked from a mailitem inspector ,only the inspector is
blocked,
how i prevent the user from working with outlook while the my form is open?

Regards,
Ahmed Yehia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top