Modal Forms and Add-Ins

D

DaveChoiceTech

I have seen a number of posts regarding problems using modal forms with
Outlook Add-Ins. This issue is also mentioned in Randy Byrn's book
"Building Applications with Microsoft Outlook".

My problems is that I want to use a modal form to gather some
information from the user before allowing the rest of my code to
execute.

1) How can I do this?
2) Why shouldn't modal forms be used with Outlook Add-Ins?
 
S

Sue Mosher [MVP-Outlook]

I know of no problem with modal userforms in an add-in (unless, of course, you use them unwisely). Where Outlook has problems is when Outlook custom forms are used modally. Perhaps you mixed up the two types of forms?
 
K

Ken Slovak - [MVP - Outlook]

Showing Inspectors modally can be a problem.




I know of no problem with modal userforms in an add-in (unless, of course,
you use them unwisely). Where Outlook has problems is when Outlook custom
forms are used modally. Perhaps you mixed up the two types of forms?
 
D

DaveChoiceTech

It is not an Outlook Form. Just a VB form. It does seem to work as you
suggest. However, from time to time the modal dialog shows behind
Outlook. Wierd.
 
D

Dmitry Streblechenko

Yes, because the VB form needs to have the Outlook inspector/expolorer
window handle specified as the parent when the form is created.
Don't know how/if VB allows to override the default parent.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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

Similar Threads


Top