Scenario:
---------
I have an Explorer style application.
The app hosts other win forms by making them MDI children, removing border /
control box / minimize / maximize, and setting the form's Dock property to
Fill.
I have recently upgraded my application in the following way:
-------------------------------------------------------------
The MDI child forms are now contained within separate dynmically loaded
assemblies. My host application creates a new application domain to load the
assemblies into. A new instance of the child form is created within the
context of the new application domain, then my host application communicates
with that object via Remoting (cross AppDomains).
Problem:
---------
I can no longer set the MDI Child form's MdiParent property to my host app
because my host app's ControlCollection is not serializable, and I get a
SerializationException thrown.
I either need to:
- Find a way to set my remote MDI child's "MdiParent" property, or
- Use the Win32 Api to create the child form as an MDI Child without adding
it to my host application's MdiChildren collection. I don't really know how
to do this, and am not sure it is even possible when using WinForms.
Any suggestions?
Trevor Germain, CET, MCP
i-Gen Solutions, Inc.