Forms Remoting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Hi,

The AppDomains you create from a "root" App Domain will be closed when the
root AppDomain terminates.
So, you should host your Form in a new Process. Communication (data
Transger) can be done by remoting (or other technologies such as Shared
Memory)

HTH


balg said:
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.
 
Back
Top