private void MainIconClick(object sender, MouseEventArgs e) { switch (e.Button) { case MouseButtons.Left: _mainIcon.ContextMenuStrip = _leftClickContextMenuStrip; _mainIcon.ShowContextMenuForced(); break; case MouseButtons.Right: _mainIcon.ContextMenuStrip = _rightClickContextMenuStrip; _mainIcon.ShowContextMenuForced(); break; default: break; } }