Hi,
I am trying to replicate a VB6 menu application that is compiled as an
ActiveX Exe. The menu application uses a series of plug-ins that are ActiveX
DLL's. When the user selects a menu option the menu app creates an instance
of the appropriate plug-in and calls a standard interface. This all works
fine. However, the menu application itself has an interface for the plugin to
talk back to should it need to.
I have managed to write the menu application, complete with interface and
can create the plugin instance. My problem appears when the plugin tries to
display a non-modal form (about 75% of the plugin forms are non-modal). When
it tries to display the non-modal form i get the following exception:
"406 Non-modal forms cannot be displayed in this host application from an
ActiveX DLL, ActiveX control or Property Page."
I'm using VS.NET 2003 with SP1 applied.
Does anyone know how to get this to work ?
Many Thanks,
Rob.
sorpor - 18 Oct 2004 18:17 GMT
VB6 modeless form is not supported in a .Net app (i.e. all non-VB app).
Check out http://support.microsoft.com/default.aspx?scid=kb;en-us;247791
Regards,
sorpor
> Hi,
>
[quoted text clipped - 20 lines]
>
> Rob.
Christian Fröschlin - 19 Oct 2004 09:41 GMT
> VB6 modeless form is not supported in a .Net app (i.e. all non-VB app).
> Check out http://support.microsoft.com/default.aspx?scid=kb;en-us;247791
If it is vital to keep the forms modeless, you need to port the
forms themselves to .NET (or convert them to ActiveX controls which
may then be hosted in a modeless Windows Form).
Wizzarding - 19 Oct 2004 10:35 GMT
I really, really wish I could port the plug-ins now, but unfortunatly that a
hell of a lot of work that we don't have resource for just now !
Thanks for the thought though!
> > VB6 modeless form is not supported in a .Net app (i.e. all non-VB app).
> > Check out http://support.microsoft.com/default.aspx?scid=kb;en-us;247791
>
> If it is vital to keep the forms modeless, you need to port the
> forms themselves to .NET (or convert them to ActiveX controls which
> may then be hosted in a modeless Windows Form).