private void button2_Click(object sender, EventArgs e) { SolidBrush myBrush = new SolidBrush(Color.Empty); ColorDialog diag = new ColorDialog(); diag.ShowDialog(); pictureBox1.Refresh(); Refresh(); }