We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

BUG: ColorUIControl does not dispose properly

Thread ID:





8986 Dec 1,2003 09:38 PM UTC Dec 2,2003 08:55 PM UTC WinForms 2
Tags: Tools
Josh Martin
Asked On December 1, 2003 09:38 PM UTC

It is not possible to close a form containing a ColorUIControl from the ColorSelected event. Here is some sample code to illustrate the problem. using System; using System.Windows.Forms; namespace WindowsApplication25 { public class Form1 : System.Windows.Forms.Form { private Syncfusion.Windows.Forms.ColorUIControl colorUIControl1; public Form1() { colorUIControl1 = new Syncfusion.Windows.Forms.ColorUIControl(); colorUIControl1.Location = new System.Drawing.Point(70, 55); colorUIControl1.Size = new System.Drawing.Size(165, 160); colorUIControl1.ColorSelected += new System.EventHandler(colorUIControl1_ColorSelected); this.ClientSize = new System.Drawing.Size(292, 266); this.Controls.Add(colorUIControl1); } private void colorUIControl1_ColorSelected(object sender, System.EventArgs e) { Close(); } [STAThread] static void Main() { Application.Run(new Form1()); } } }

Josh Martin
Replied On December 1, 2003 09:49 PM UTC

This is in version but may exist in prior versions.

Gurucharan Patwal [Syncfusion]
Replied On December 2, 2003 08:55 PM UTC

Hi Joshua, Thanks for bringing this to our attention. I did encounter an ObjectDisposedException when I tried the above suggested code. I have notified the development team about this issue and will keep you posted on the developments. Thanks for your patience and we appreciate your feedback. Regards, Guru Patwal Syncfusion, Inc.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon