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 / Remoting / June 2004

Tip: Looking for answers? Try searching our database.

Reproducing InProc Server effect in .Net WinForms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
balg - 28 Jun 2004 11:38 GMT
In Windows Forms, I need to spin off a form (say a debugInfoWindow) which will not close even if the main form / application closes.

This was achieved in VB6 by placing that form in an inproc server Exe and opening it with a load library / createobject. ( this also allowed data transfer between the two forms.)

How this can be done in .Net ? Guess creating a new AppDomain and hosting the form's assembly there is the right direction. but still it gets closed when the main window is closed.
Allen Anderson - 28 Jun 2004 15:39 GMT
by definition, creating an object that forces a process to stay open
even when it wants to close is not a good thing.  However, many people
have created debug window processes that they connect to through
remoting (a very easy thing to do).  The only catch would be that the
debug window would need to be its own exe.  This is probably the
better way to go anywya and should give exactly the results you
desire.

Cheers,
Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website base here.com

>In Windows Forms, I need to spin off a form (say a debugInfoWindow) which will not close even if the main form / application closes.
>
>This was achieved in VB6 by placing that form in an inproc server Exe and opening it with a load library / createobject. ( this also allowed data transfer between the two forms.)
>
>How this can be done in .Net ? Guess creating a new AppDomain and hosting the form's assembly there is the right direction. but still it gets closed when the main window is closed.

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.