Results 1 to 4 of 4

Thread: [RESOLVED] When I right click...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Location
    United States
    Posts
    83

    Resolved [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?

  2. #2
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    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.

  3. #3
    Fanatic Member
    Join Date
    Mar 2008
    Posts
    519

    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.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Location
    United States
    Posts
    83

    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
  •  



Click Here to Expand Forum to Full Width