/// <summary> /// Sets the accepts tab. /// </summary> /// <param name="textBoxBase">The text box base.</param> /// <param name="value">if set to <c>true</c> [value].</param> public static void SetAcceptsTab(this TextBoxBase textBoxBase, bool value) { if (textBoxBase.InvokeRequired) { textBoxBase.BeginInvoke(new MethodInvoker(() => textBoxBase.SetAcceptsTab(value))); } else { textBoxBase.AcceptsTab = value; textBoxBase.Refresh(); } }