如何在vb.net或c#中右键单击弹出菜单 [英] how to pop up menu on right button click in vb.net or c#

查看:86
本文介绍了如何在vb.net或c#中右键单击弹出菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何以vb格式弹出菜单单击鼠标右键单击。

运行时间。

如果我右键单击标签它应该是不同的,如果我右键单击表格或空白画布

它应该弹出不同。

How to pop up a menu in vb form click on Mouse right click.
During runtime.
If i Right click on label it should be different and if i right click on form or blank canvas
It should different pop up.

推荐答案

请参阅以下链接: -



简单的shell上下文菜单 [ ^ ]



添加上下文菜单到Windows资源管理器 [ ^ ]
See the following links:-

Simple shell context menu[^]

Add a context menu to the Windows Explorer[^]


contextmenuStrip

并勾选鼠标右键单击
contextmenuStrip
and check mouse right button click


这篇关于如何在vb.net或c#中右键单击弹出菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆