我有一个分配给 NotifyIcon 的 ContextMenuStrip,这适用于右键单击。
如何连接鼠标单击事件以告诉 NotifyIcon 显示其 ContextMenuStrip?
private void taskbarIcon_MouseClick(object sender, MouseEventArgs e)
{
switch (e.Button)
{
case MouseButtons.Left:
// What could I use here?
break;
default:
break;
}
}