Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
750
Collection is read only.
posted

When I add an ultrachart to my form, all seems well until I attempt to reopen the designer for that form, then I get the wonderfully useful error.

Collection is read only.

here is the call stack:

at System.Windows.Forms.WindowsFormsUtils.TypedControlCollection.Add(Control value)
at Infragistics.Win.UltraWinChart.IGWinTooltip.AddToControlsCollection(Control controlToAttachTo)
at Infragistics.Win.UltraWinChart.IGWinTooltip.Attach(Control chartControl)
at Infragistics.Win.UltraWinChart.UltraChart.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at System.Windows.Forms.Design.ControlDesigner.DesignerControlCollection.Add(Control c)

and the line that warning shows up on is misleading.

      this.splitContainer1.Panel1.Controls.Add(this.ultraTabControl1);

The form is like this.  A splittercontainer where the top pane is holding a ultraTabControl and on the second tab is the ultrachart.

The program compiles and runs but since this is a complicated form, the constant "Ignore and continue" everytime I open the designer is very annoying. 

Can anyone tell me how to get rid of this?

Gene

 

Parents Reply Children