private void BtnColor_Click(object sender, EventArgs e) { if (DlgColor.ShowDialog() == DialogResult.OK) { TxtColor.Text = Operation_Kart.ConvertHex(DlgColor.Color.R.ToString()) + Operation_Kart.ConvertHex(DlgColor.Color.G.ToString()) + Operation_Kart.ConvertHex(DlgColor.Color.B.ToString()); } }