The following tutorial demonstrates configuring the
RadColorDialog, localizing
tab labeling and responding to the
OK button click.
Drop a RadColorDialog on the form.
In the Properties Window set the Dock property to
Fill.
Set the ShowBasicColors property to
false.
Set the ShowProfessionalColors property to
false.
Set the ShowHEXColorsValue property to
false.
Set the AllowPickColorFromScreen property to
false.
Set the ShowCustomColors property to
false.
Change the WebTabHeading property to read "Named Web
Colors".
Get the SelectedColor or SelectedHlsColor, check the returned DialogResult :
Copy[C#] Check the selected values in RadColorDialog
if (radColorDialog1.ShowDialog() == DialogResult.OK)
{
Color color = radColorDialog1.SelectedColor;
HslColor hslColor = radColorDialog1.SelectedHslColor;
}
Copy[VB.NET] Check the selected values in RadColorDialog
If RadColorDialog1.ShowDialog() = DialogResult.OK Then
Dim color As Color = RadColorDialog1.SelectedColor
Dim hslColor As Telerik.WinControls.HslColor = RadColorDialog1.SelectedHslColor
End IfPress F5 to run the application.