ActiveX form in C#

Sep 26 2003 12:42 PM
I have a VB6 ActiveX DLL in which I have methods that allow me to call a VB6 form within the VB6 DLL application. I am using COM interop in C# to link to this DLL, and am trying to open VB forms from within my C# windows app. The problem is that it only allows me to run VB forms Modally. I want to be able to open my forms in Modeless mode, i.e frmMyForm.Show if I attempt this i get the following error. Error 406: Non-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page So am I stuck with only being able to open Forms in Modal mode from within C# or is there another way. OR if anyone knows how I can open a VB6 form in Modeless mode (not Modal), from with C#, Please help me. Thanks.

Answers (4)