Ejemplo n.º 1
0
 /// <summary>
 /// Sets the color of the fore.
 /// </summary>
 /// <param name="textBoxBase">The text box base.</param>
 /// <param name="value">The value.</param>
 public static void SetForeColor(this TextBoxBase textBoxBase, Color value)
 {
     if (textBoxBase.InvokeRequired)
     {
         textBoxBase.BeginInvoke(new MethodInvoker(() => textBoxBase.SetForeColor(value)));
     }
     else
     {
         textBoxBase.ForeColor = value;
         textBoxBase.Refresh();
     }
 }