Windows Develop Bookmark and Share   
 index > Windows Forms General > Error: Relationships between (1) and (2) are not supported
 

Error: Relationships between (1) and (2) are not supported

I have a control that has a couple of properties, one of them references the same object as the other. The code generated looks like this:

-------------------------

MyNameSpace.Attributes attributes1 = new MyNameSpace.Attributes();

attributes1.ReferenceProperty =
this.myControl1.ReferenceProperty;

this.myControl1.AttributesCollection.AddRange(new MyNameSpace.Attributes[] {

attributes1,

attributes2,

attributes3});

-------------------------

The code runs perfectly but when I try to open the form again I get:

Relationships between MyNameSpace.Attributes.ReferenceProperty and myControl1.ReferenceProperty are not supported.

Any ideas ?

FrankP  Tuesday, June 28, 2005 1:43 PM

I believe this is a bug we fixed sometime back. If you want to be sure, please report this problem through MSDN Product Feedback with a project attached that demonstrates the problem. Thanks!

Raghavendra Prabhu MSFT  Friday, July 29, 2005 11:22 PM

You can use google to search for other answers

Custom Search

More Threads

• Focus mystery
• please help
• Send text to textbox in webbrowser
• Need help to control when a menu closes
• System.Drawing.Graphic.VisibleClipBounds
• Checking for special characters in text control
• Custom Form Graphics
• Usercontrol question
• List Box DataBinding Issue
• drop down list in a dataGridView - possible?