private void tx_foreColor_LostFocus(object sender, EventArgs e) { try { shForeColor.BackColor = Color.FromArgb(Int32.Parse(tx_foreColor.Text)); } catch (Exception ignore) { } }