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.
Unfortunately, activation email could not send to your email. Please try again.

BUG: ColorUIControl does not dispose properly

Thread ID:

Created:

Updated:

Platform:

Replies:

8986 Dec 1,2003 04:38 PM Dec 2,2003 03:55 PM Windows Forms 2
loading
Tags: Tools
Josh Martin
Asked On December 1, 2003 04:38 PM

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 04:49 PM

This is in version 2.0.1.0 but may exist in prior versions.

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

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.

CONFIRMATION

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.

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.

;