开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜