
COM popup form gets 'lost'
Ken Slovak suggested that pop-up forms should be called from an invisible
form to prevent just this problem.
Quote:
> 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
> > 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