public void ShowContextMenu() { METAboltContextMenuStrip menu = GetContextMenu(); if (menu.HasSelection) { menu.Show(listFriends, listFriends.PointToClient(System.Windows.Forms.Control.MousePosition)); } }
private void rtbChat_MouseUp(object sender, MouseEventArgs e) { if (e.Button != MouseButtons.Right) { return; } METAboltContextMenuStrip cms = new METAboltContextMenuStrip(); instance.ContextActionManager.AddContributions(cms, instance.Client); cms.Show((Control)sender, new Point(e.X, e.Y)); }