/// <summary> /// Sets the background image. /// </summary> /// <param name="textBoxBase">The text box base.</param> /// <param name="value">The value.</param> public static void SetBackgroundImage(this TextBoxBase textBoxBase, Image value) { if (textBoxBase.InvokeRequired) { textBoxBase.BeginInvoke(new MethodInvoker(() => textBoxBase.SetBackgroundImage(value))); } else { textBoxBase.BackgroundImage = value; textBoxBase.Refresh(); } }