/// <summary> /// Sets the automatic ellipsis. /// </summary> /// <param name="control">The control.</param> /// <param name="value">if set to <c>true</c> [value].</param> public static void SetAutoEllipsis(this ButtonBase control, bool value) { if (control.InvokeRequired) { control.BeginInvoke(new MethodInvoker(() => control.SetAutoEllipsis(value))); } else { control.AutoEllipsis = value; control.Refresh(); } }