The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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());
}
}
}
This is in version 2.0.1.0 but may exist in prior versions.
GPGurucharan Patwal Syncfusion Team 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.