/// <summary> /// Sets the color of the back. /// </summary> /// <param name="textBoxBase">The text box base.</param> /// <param name="value">The value.</param> public static void SetBackColor(this TextBoxBase textBoxBase, Color value) { if (textBoxBase.InvokeRequired) { textBoxBase.BeginInvoke(new MethodInvoker(() => textBoxBase.SetBackColor(value))); } else { textBoxBase.BackColor = value; textBoxBase.Refresh(); } }