473,503 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Windows.Forms.MdiClient+ControlCollection not serializable.

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.


Jul 21 '05 #1
0 1524

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5624
by: K | last post by:
Can anyone tell me why VB can successfully inherit from the ControlCollection class but C# can't? When compiling the following 2 classes, the C# version gets a compile error of: "No overload...
0
1416
by: e-mid | last post by:
when i type: System.Windows.Forms.Controls. i cant see ControlCollection on the list, but i can use it. i cant see the methods on the instance either, but i can use its methods too. what...
1
1847
by: mccoyn | last post by:
I am having trouble adding a control to ControlCollection in a class I have derived from GroupBox. Here is what I've got __gc class RowColumn : public System::Windows::Forms::GroupBo public...
0
1748
by: Harry F. Harrison | last post by:
Here's the situation...Context - Using an Inherited WebControl object as a base for server custom controls. In a web custom control, whenever I create a child control and add it to the Controls...
3
2324
by: Phill. W | last post by:
Is it possible to extend the Windows.Forms.Form.ControlCollection class and override it's Add method? I'm adding controls to a Form and want to hook up Event Handling for the Form to deal with...
0
362
by: Trevor Germain | last post by:
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...
3
1492
by: Thomee Wright | last post by:
I'm developing a client/server application (in VS2005 managed C++) which makes use of .Net remoting. A simplified solution which demonstrates the problem I'm having can be found at: ...
0
2198
by: Gursharan | last post by:
Hi, I get this error after I did a load test on my website (500 constant user load in team system for 35 minutes). This error is logged after about 1 minute of load testing and is logged every...
1
2205
by: thomasjbs | last post by:
Anyone know a consistent object reference to forms controls? I have 2 forms. The main form instantiates a 2nd form, creates some text and label objects on the 2nd form, hides itself and then...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7074
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3161
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.