单击以打开 C# 中托盘图标的菜单
如何强制在单击而不是右键单击时显示托盘图标的上下文菜单。
我尝试过使用 MouseClick 事件,但 eventargs 的鼠标位置为 x0y0。
How do i force a context menu for a tray icon to be shown when it is click rather than just right-clicked.
Ive tried using the MouseClick event, but the eventargs have the mouse position at x0y0.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这应该适合你:
This should do it for you:
我发现另一种方法效果更好:
An alternate method that I have found to work a bit better: