Modal Forms and Add-Ins

  • Thread starter Thread starter DaveChoiceTech
  • Start date Start date
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?
 
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?
 
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?
 
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.
 
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
 
Back
Top