Version

Color Property

Set/Get Color of control
Syntax
'Declaration
 
Public Property Color As Color
public Color Color {get; set;}
Example
This sample listens to the ColorChanged event of the control and then sets the form's backColor.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Private Sub UltraColorPicker1_ColorChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UltraColorPicker1.ColorChanged

    Me.BackColor = Me.UltraColorPicker1.Color

End Sub
private void ultraColorPicker1_ColorChanged(object sender, System.EventArgs e)
{

	this.BackColor = this.ultraColorPicker1.Color;

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also