Windows form in an in process COM object


P

PLS

I'm writing a extension to an existing app that supports COM objects for
extensions. The extension is written as a .NET class library with the
exposed class creating a Windows form and call ShowModal. The form
appears on the screen, but does not respond to mouse and keyboard input.
It is as though the form is not receiving Windows messages.

The hosting app provides a standard Windows message loop, which is
basically
GetMessage
TranslateMessage
DispatchMessage

Is something more needed? ShowModal should provide its own message loop,
but does the .NET runtime depend on having an Application object
somewhere down the stack?

++PLS
 
Ad

Advertisements

P

PLS

Just for reference, if I display the form with Show rather than
ShowDialog, everything works. Only ShowDialog fails.

++PLS
 

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

Top