Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / October 2004

Tip: Looking for answers? Try searching our database.

Non-modal forms cannot be displayed in this host application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wizzarding - 18 Oct 2004 13:23 GMT
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).

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.