473,656 Members | 2,871 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Windows. Forms.MdiClient +ControlCollect ion 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 ControlCollecti on is not serializable, and I get a
SerializationEx ception 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 1553

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

Similar topics

1
5634
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 for method 'ControlCollection' takes '0' arguments" // C#
0
1431
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 would be the reason? is this a bug of intellisense?
1
1856
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 RowColumn() ignoredcontrols = new System::Windows::Forms::Control::ControlCollection(this) void IgnoreControl(System::Windows::Forms::Control* control)
0
1758
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 class, it takes 3 lines of code. Example: Dim TextBox as System.Web.UI.WebControls.TextBox 1..TextBox = New System.Web.UI.WebControls.TextBox
3
2338
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 on behalf of each Control. I /thought/ the best way to do this would be to inherit from and override the Add method on the Form.ControlCollection class and put some AddHandler statements in there. This much I can do but the bit I'm missing is...
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 Dock property to Fill. I have recently upgraded my application in the following way: -------------------------------------------------------------
3
1500
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: http://www.nmt.edu/~elessar/RemotingTest.tar.bz2 http://www.nmt.edu/~elessar/RemotingTest.zip Uncommenting Server.cpp line 67 causes the problem. Removing it fixes the problem. The server listens on port 1357, and the client connects to localhost:1357.
0
2206
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 60 seconds. Any ideas? Event code: 3005 Event message: An unhandled exception has occurred. Event time: 30/07/2006 21:56:12 Event time (UTC): 30/07/2006 20:56:12
1
2211
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 uses the ShowModal method to show the 2nd form. (so first form is hidden and modal) (I think it was showmodal...) But the first form has a list box that I want to reference from the 2nd form. I cannot seem to find a reference to access the...
0
8382
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8816
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8498
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8600
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7311
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5629
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1600
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.