/// <summary> /// Sets the allow merge. /// </summary> /// <param name="control">The control.</param> /// <param name="value">if set to <c>true</c> [value].</param> public static void SetAllowMerge(this ToolStrip control, bool value) { if (control.InvokeRequired) { control.BeginInvoke(new MethodInvoker(() => control.SetAllowMerge(value))); } else { control.AllowMerge = value; control.Refresh(); } }