Exemple #1
0
 /// <summary>
 /// Sets the background image layout.
 /// </summary>
 /// <param name="textBoxBase">The text box base.</param>
 /// <param name="value">The value.</param>
 public static void SetBackgroundImageLayout(this TextBoxBase textBoxBase, ImageLayout value)
 {
     if (textBoxBase.InvokeRequired)
     {
         textBoxBase.BeginInvoke(new MethodInvoker(() => textBoxBase.SetBackgroundImageLayout(value)));
     }
     else
     {
         textBoxBase.BackgroundImageLayout = value;
         textBoxBase.Refresh();
     }
 }