Example #1
0
 private void BackColorButton_Click(object sender, EventArgs e)
 {
     if (BackColorDialog.ShowDialog() == DialogResult.OK)
     {
         CanvasColor = BackColorDialog.Color;
         BackColorButton.BackColor = BackColorDialog.Color;
     }
 }
Example #2
0
 private void btn_BackColor_Click(object sender, EventArgs e)
 {
     if (BackColorDialog.ShowDialog() == DialogResult.OK)
     {
         BackgroundColor         = BackColorDialog.Color;
         btn_BackColor.BackColor = BackColorDialog.Color;
     }
 }