How to create a popup menu in visual basic.net?
How can I create a popup menu in vb 2008 for use开发者_开发百科 as a context sensitive menu for when I right-click?
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.
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.
精彩评论