How to create a popup menu in visual basic.net?

前端 未结 2 1239
误落风尘
误落风尘 2021-01-24 07:01

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

相关标签:
2条回答
  • 2021-01-24 07:11

    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.

    0 讨论(0)
  • 2021-01-24 07:17

    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.

    0 讨论(0)
提交回复
热议问题