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

隐身守侯 提交于 2020-01-11 12:07:31

问题


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


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/1723327/how-to-create-a-popup-menu-in-visual-basic-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!