BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
I want to fill in the 16 custom colors with the System.Windows.Forms.ColorDialog.CustomColors, how would I go about doing that?
I also want to save them back to the System.Windows.Forms.ColorDialog.CustomColors is the use changed the custom colors on on ColorUIControl. Do you have a sample for doing this?
Hi
Tuan,
Thank
you for using Syncfusion products,
We
would like to let you that the custom colors can be set in ColorUIControl by
right clicking on the empty cell. Please
have the attached sample and video for your reference.
Please
follow the below steps to achieve this and let us know if this helps you,
1)
Run
the sample,
2)
Right
click on the empty cell
3)
New
dialog box will open.
4)
Pick
the color and then click on AddColor
5)
Now
selected color will be added in the Custom Colors
Please
let us know if you have any concerns,
Regards,
Saravanan
T
I want to set those programmatically, not selecting from the popup dialog. I'm using the MFC's color dialog in other apps and I want to transfer those custom color to Syncfusion's ColorUIControl.
Hi
Tuan,
Thank
you for your update,
We
would like to let you know that we have modified the sample for your
requirement and it can be downloaded from the below attachment.
Code
Snippet [C#]:
this.colorUIControl1.SelectedColorGroup
= Syncfusion.Windows.Forms.ColorUISelectedGroup.UserColors;
// To set the color this.colorUIControl1.UserCustomColors[0] = Color.DeepPink; this.colorUIControl1.UserCustomColors[1] = Color.Blue;
|
Please
let us know if you need any further assistance,
Regards,