小编hyd*_*gen的帖子

如何在左键单击NotifyIcon时显示ContextMenuStrip?

我有一个ContextMenuStrip分配给NotifyIcon,这适用于右键单击罚款.

如何连接鼠标单击事件以告知NotifyIcon显示其ContextMenuStrip?

private void taskbarIcon_MouseClick(object sender, MouseEventArgs e)
{
    switch (e.Button)
    {
        case MouseButtons.Left:
            // What could I use here?
            break;
        default:
            break;
    }
}
Run Code Online (Sandbox Code Playgroud)

.net c# notifyicon contextmenustrip winforms

3
推荐指数
1
解决办法
5098
查看次数

标签 统计

.net ×1

c# ×1

contextmenustrip ×1

notifyicon ×1

winforms ×1