
COM popup form gets 'lost'
You need to set the correct parent HWND for your modal dialog. I don't know how
you would do it in VB (I don't use it), assuming it can be done
1. Get IOleWindow interface of the Outlook Explorer or Inspector that must be
the parent (use "As"?)
2. call IOleWindow.GetWindow() to get the window handle
3. Make that HWND a parent of your dialog. (???)
Dmitry Streblechenko (MVP)
http://www.*-*-*.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
Quote:
> I pop up a VB form from a COM DLL in Outlook. If the user
> switches to another app while this form is showing, they
> can't select the form again. They can switch to Outlook,
> which is locked of course, but the pop up form is not
> shown on the taskbar and Alt-Tab can't find it. The form
> is basically invisible and unselectable.
> Any ideas
> thanks
> Deermot Balson