none
Right-click Menus - VB RRS feed

  • Question

  • How do I create a right-click menu so that when I right click a control the menu appears?

    Could you supply me the code?

    • Moved by Amanda Zhu Monday, April 7, 2014 8:09 AM better forum
    Saturday, April 5, 2014 11:42 AM

Answers

  • If this is a Forms application in VB.NET, then create a ContextMenuStrip object and assign it to ContextMenu property of the control. Usually this can be done with few effort in Form Designer, not programmatically, so the code is supplied by Visual Studio. You only have to respond to menu events.


    Saturday, April 5, 2014 1:21 PM