Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic .NET (http://www.programmingforums.org/forum19.html)
-   -   Adding MenuItem to System Menu (http://www.programmingforums.org/showthread.php?t=13400)

bigguy Jun 20th, 2007 9:11 PM

Adding MenuItem to System Menu
 
Hey yall, I am making a small program that allows me to group by fiiles and folders by specifics like type, date, or category and so on. I was wodering, you know when you right click a file or folder the menu it gibves you with options. Ineed to be able to add an item to that menu. Ani ideas? Thanks

john Wesley Jun 20th, 2007 9:22 PM

Which menu?, a menu within your own application that you have coded to show options when you right-click a file/folder that is otherwise represented by your application? or do you mean the system menu?, or is there another menu?

bigguy Jun 20th, 2007 9:28 PM

The system menu, with open, cut copy etc not the application menu with close move size etc, just the one where when you right click the folder or file say on your desktop, the menu that shows there.

john Wesley Jun 20th, 2007 10:32 PM

Are you familiar with editing the registry? even more so using the Registry class exposed by .NET?...As this can be quite simple if so.

HKEY_CLASSES_ROOT\Folder\Shell\NewMenuOption - Set your menu option name here.

HKEY_CLASSES_ROOT\Folder\Shell\NewMenuOption\Command - Set the command of your menu option here (ie. %systemroot%system32\calculator.exe).

Restart then right click a file/folder in explorer!

mattireland Jul 6th, 2007 5:09 PM

WOW - that is so cool! I'm so going to do that. Can you go into a bit more detail how to do this please?

So you create your program with cut, copy e.t.c. - I can do that fine but then do you just compile it and type the name of it into the registry bit. I know how to get into the registry and navigate around it - no need to go there!

Thanks!


All times are GMT -5. The time now is 12:52 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC