private void CursorColorButton_Click(object sender, EventArgs e) { this.colorDialog1.Color = ColorParser.FromString(CursorColorTextBox.Text); DialogResult result = this.colorDialog1.ShowDialog(); if (result == DialogResult.OK) { CursorColorTextBox.Text = ColorParser.ToString(this.colorDialog1.Color); } }