COM popup form gets 'lost' 
Author Message
 COM popup form gets 'lost'

Ken Slovak suggested that pop-up forms should be called from an invisible
form to prevent just this problem.

> 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
> 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

Tue, 22 Jun 2004 12:39:57 GMT  
 [ 1 post ] 

 Relevant Pages 

1. COM popup form gets 'lost'

2. HELP : Popup menu doesn't popup ??

3. MDI Menu with Child form Popup menu's

4. Popup Menu's and Modal Forms

5. Global Variables Lost 'on error'

6. Dr GUI, I've lost my debugger and I can't get up

7. Sending 'popup messages' from VB6

8. 'Lost' Left Mouse Button

9. Looking for 'Application Lost Focus' event

10. display back 'lost' application

11. Dr GUI, I've lost my debugger and I can't get up

12. Q: Getting Form's filter state in Access 2


Powered by phpBB® Forum Software