private void Button1_Click(object sender, System.EventArgs e) { ColorChooser1 frm =new ColorChooser1(); frm.Color = Label1.BackColor; if (frm.ShowDialog(this) == DialogResult.OK) { Label1.BackColor = frm.Color; } frm.Dispose(); }
private void Button1_Click(object sender, System.EventArgs e) { ColorChooser1 frm = new ColorChooser1(); frm.Color = Label1.BackColor; if (frm.ShowDialog(this) == DialogResult.OK) { Label1.BackColor = frm.Color; } frm.Dispose(); }