单击通知图标时如何以编程方式显示上下文菜单?
我有一个示例 C# Windows 表单此处。我需要在单击鼠标左键时显示通知图标的上下文菜单。我已经标记了在哪里编写所需的代码如下:
private void button1_Click(object sender, EventArgs e)
{
//Need to show the context menu here
}
请帮忙!
I have a sample C# windows form here. I need to show the notification icon's context menu when it is left-mouse clicked. I have marked where to write the needed codes as below:
private void button1_Click(object sender, EventArgs e)
{
//Need to show the context menu here
}
Please help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
左键单击图标时显示菜单
单击问题中的按钮时显示菜单
To show the menu when your icon is left-clicked
To show the menu when the button in your question is clicked