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