private void picColor(TextBox txColor, Label shColor)
{
// Show the color dialog.
DialogResult result = colorDialog.ShowDialog();
// See if user pressed ok.
if (result == DialogResult.OK)
{
// Set form background to the selected color.
txColor.Text = colorDialog.Color.ToArgb().ToString();
shColor.BackColor = colorDialog.Color;
}
}