|
-
Dec 23rd, 2009, 12:05 PM
#1
Thread Starter
Lively Member
[RESOLVED] When I right click...
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?
-
Dec 23rd, 2009, 12:39 PM
#2
Re: When I right click...
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.
-
Dec 23rd, 2009, 01:33 PM
#3
Fanatic Member
Re: When I right click...
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.
-
Dec 23rd, 2009, 03:59 PM
#4
Thread Starter
Lively Member
Re: When I right click...
Thank you very much. I figured it now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|