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();
 }
Exemple #2
0
        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();
        }