|117088||Aug 7,2014 05:36 PM||Aug 11,2014 07:58 AM||Windows Forms||3|
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?
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,
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.
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 = Color.DeepPink;
this.colorUIControl1.UserCustomColors = Color.Blue;
Please let us know if you need any further assistance,
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.