如何在 Visual Basic.net 中创建弹出菜单?

发布于 2024-08-11 04:17:31 字数 45 浏览 4 评论 0原文

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

忆依然 2024-08-18 04:17:31

工具箱的“组件”部分中有一个上下文菜单。然后,您可以将此上下文菜单链接到设计视图中控件的“属性”部分中的相应控件。

There's a context menu located in the Components section of the Toolbox. You can then link this context menu to the appropriate control(s) in the Properties section of the control in the Design View.

叫思念不要吵 2024-08-18 04:17:31

首先,使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文