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