Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
How to preset Custom Colors in UltraColorPicker?

The CustomColors property claims to be a fixed array of 16 Colours, that you can preset in FormLoad, as defined here:

private void Form1_Load(object sender, System.EventArgs e)

	this.ultraColorPicker1.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid ;
	this.ultraColorPicker1.ButtonAppearance.BackColor = Color.Blue;
	// Display varying shades of yellow in custom area.
	for(int i = 0; i < 16; i++)
		this.ultraColorPicker1.CustomColors[i].Color = Color.FromArgb(255,255,15*i);


This simply doesn't work, no custom colours are shown in the Palette dropdown when the form is displayed, all custom colours are empty.

How do I get them to display?

I'm using v17.2.20172.20139 of WinForms