private bool PerformClick(CommandBarItem item) { Application.DoEvents(); CommandBarControl control = item as CommandBarControl; if (control != null) { control.PerformClick(EventArgs.Empty); return true; } return false; }