Groups | Blog | Home
all groups > dotnet interop > january 2007 >

dotnet interop : Trying to Display a non-modal VB6 Form of an AcitveX DLL in C#


Martin_Bürkle
1/21/2007 6:07:07 PM
Hallo NG,

I'm trying to display a VB6 6 of an ActiveX DLL in c Sharp. I use
therefore the SetParent API function. After this function call I get
always the error message "Non-modal forms cannot be
displayed in this host application from an ActiveX DLL, ActiveX Control,
or Property Page.". Does somebody know if it is possible to show a non
modal Form, or has sombebody a workaround for that.

Thanks for your help.

Regards
Christian_Fröschlin
1/22/2007 9:46:03 AM
[quoted text, click to view]

I also ran across that one and there did not seem to be a solution
short of embedding VBA in your application. Even in Visual C++ 6.0
opening non-modal Forms from ActiveX controls didn't work. If you
have the sources for the ActiveX DLL, you can change it to open
modal dialogs or provide the GUI in ActiveX controls instead,
which you can then host in modeless .NET Forms.

The problem is mentioned in the article below (mind line breaks):

AddThis Social Bookmark Button