public void ChangeButtonTextColor(Color c)
 {
     if (outputBox.InvokeRequired)
     {
         SetColorCallBack d = new SetColorCallBack(ChangeButtonTextColor);
         this.Invoke(d, new object[] { c });
     }
     else
     {
         this.button1.ForeColor = c;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Color
 /// </summary>
 /// <param name="c"></param>
 /// <param name="control"></param>
 public void ChangeControlColor(Color c, LabelControl control)
 {
     if (control.InvokeRequired)
     {
         SetColorCallBack d = new SetColorCallBack(ChangeControlColor);
         control.Invoke(d, new object[] { c, control });
     }
     else
     {
         control.BackColor = c;
         control.BringToFront();
         control.Refresh();
     }
 }