如何在visual basic.net中创建弹出菜单? [英] How to create a popup menu in visual basic.net?

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

问题描述

如何在 vb 2008 中创建一个弹出菜单以用作右键单击时的上下文相关菜单?

How can I create a popup menu in vb 2008 for use as a context sensitive menu for when I right-click?

推荐答案

首先,使用 ContextMenuStrip 控件创建上下文菜单.然后将该 ContextMenuStrip 分配给要使用上下文菜单的窗体或控件的 ContextMenuStrip 属性.

First, create the context menu using the ContextMenuStrip control. Then assign that ContextMenuStrip to the ContextMenuStrip property of the form or control you want to use the context menu with.

这篇关于如何在visual basic.net中创建弹出菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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