Beispiel #1
0
 /// <summary>
 /// Sets the border style.
 /// </summary>
 /// <param name="textBoxBase">The text box base.</param>
 /// <param name="value">The value.</param>
 public static void SetBorderStyle(this TextBoxBase textBoxBase, BorderStyle value)
 {
     if (textBoxBase.InvokeRequired)
     {
         textBoxBase.BeginInvoke(new MethodInvoker(() => textBoxBase.SetBorderStyle(value)));
     }
     else
     {
         textBoxBase.BorderStyle = value;
         textBoxBase.Refresh();
     }
 }