I want a custom menu when I right click. Like, you know when you right click on your desktop, and you see a bunch of menus, like properties and whatnot.
How do I do that with VB.Net? Also, how to add custom?
Printable View
I want a custom menu when I right click. Like, you know when you right click on your desktop, and you see a bunch of menus, like properties and whatnot.
How do I do that with VB.Net? Also, how to add custom?
Do you mean rightclicking a certain control on your form (or your form itself), or rightclicking anything, even outside of your application?
In the first case, just add a ContextMenuStrip control to your form, add some items to it, and then set the ContextMenuStrip property of the control you want to show it for.
In the second case :P
You'd need to register a key in the path where context menu items of windows are stored, you can google more on this if this is what you want to achieve.
Thank you very much. I figured it now.