none
right click menu RRS feed

  • Question

  • I want to add item in the right click menu which have to apear when user right click on file, folder, desktop or in the explorer background. Do anyone have idea how to add menu item that can apear on all? Also tell me an alternate if it is not possible.

     

    Wednesday, April 18, 2007 11:03 AM

Answers

  • I am afraid you can not do that. Because each application contains own resources and cut,copy and paste (and even file,edit,view,tools,help menus) are really common commands. So, every application has it. They don't get it from a central source which can be modified to make changes to all.

    I hope you get it.
    Thursday, April 19, 2007 2:30 PM

All replies

  • Hello,

    It is called ContextMenu.

     

    Just comments.

    Wednesday, April 18, 2007 2:02 PM
  • You need to create an contextmenu.   This can be done in the designer.   Add the contextmenu to the form and create the menuopptions you want..     Now goto each object you want the contectmenu to popup and set the contextmenu property to the newlly created CM....

     

     

     

    good luck....

    Wednesday, April 18, 2007 3:34 PM
  • Ordinarily you would need to create a shell extension.

     

    Here's a link to a registry hack that might be a simpler way for you to meet your needs http://www.codeproject.com/csharp/appendmenu.asp

     

    If you really want to get into writing a shell extension ... I'd recommend you take a look here first http://www.mvps.org/emorcillo/en/code/shell/shellextensions.shtml

     

    Good luck

     

    Richard

    Wednesday, April 18, 2007 3:44 PM
  • Hi xishan shigri,

    This is a really wonderful article on windows shell programming. What you seek is part of programming windows shell.

    http://www.codeproject.com/shell/shellextguideindex.asp

    Hope this helps.
    Wednesday, April 18, 2007 4:04 PM
  • Thnx Guys for your reply but the problem needs some more discussion and....

    Here i want to place this right click menu for all (Internet explorer, Ms Office, windows desktop, context menu etc etc). Actually i want it on all the right click menues where standard cut, copy and past occur. So do i have to implement it seperately for all the application or i can do it on a parent one and it will display on all the applications?

    Thursday, April 19, 2007 2:00 PM
  • I am afraid you can not do that. Because each application contains own resources and cut,copy and paste (and even file,edit,view,tools,help menus) are really common commands. So, every application has it. They don't get it from a central source which can be modified to make changes to all.

    I hope you get it.
    Thursday, April 19, 2007 2:30 PM
  • thnx i just want to confirm it.
    Friday, April 20, 2007 4:58 AM