private void Profile_MouseDown(object sender, EventArgs e) { hold_profiles_dropdown = true; MouseEventArgs mouse_args = (MouseEventArgs)e; if (mouse_args.Button == MouseButtons.Right) { ProfileRightClickMenu.Tag = ((ToolStripMenuItem)sender).Text; ProfileRightClickMenu.Show(MousePosition.X, MousePosition.Y); } }
private void chatBox_profileRightClicked(string senderID, object sender, MouseEventArgs e) { ProfileRightClickMenu.Show(MousePosition.X, MousePosition.Y); }