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
665
Disposing of a UltraPanel containing an UltraChart throws an error
posted

I have a forms containing a UltraPanel. The UltraPanel contains an UltraChart.
When I call ultraPanel.Dispose() the error below is thrown.
The chart is definately added to the panel's ClientArea.Controls in the designer and is the only control inside the panel.

System.InvalidOperationException: The Controls collection of the UltraPanel is read-only. Modify the UltraPanel.ClientArea.Controls collection instead.

   at Infragistics.Win.Misc.UltraPanel.UltraPanelControlCollection.Remove(Control value)

   at Infragistics.Win.UltraWinChart.IGWinTooltip.Dispose(Boolean disposing)

   at System.ComponentModel.Component.Dispose()

   at System.Windows.Forms.Control.Dispose(Boolean disposing)

   at System.Windows.Forms.Form.Dispose(Boolean disposing)

   at FarmMatters.Home.frmHome.Dispose(Boolean disposing)

   at System.ComponentModel.Component.Dispose()

   at System.Windows.Forms.Form.Close()