zerodevice

i'm coding my own small program.
I am trying to allows users to just right-click on the desktop or explorer and shows an option (like WinRAR did) to load the selected files into my program's listbox.

e.g.
1. User right-click on a mp3 in desktop.
2. a context menu appears and one of the menu item is "Convert To".
3. after user mouse over the "Convert To" item, it will then have sub menu items with "mp3", "wav", "ogg".
4. user then click on the "wav" option, and it will run the program i wrote, and load the selected file's path into a listbox.

basically, i need to know hwo to add the context menu, and how to load into listbox after selecting it.

thanks.




Re: Windows SDK how to: load filenames into C#App from Shell Context Menu?

OmegaMan

You will need to get to know the WSH Windows Scripting Host Module. Check out the Codeproject article Creating Shell Links.





Re: Windows SDK how to: load filenames into C#App from Shell Context Menu?

timvw

The keywords you need for a websearch are: 'c# shell extension'.. You'll find a couple of good articles (i believe even msdnmag has one).. But i would recommend against using c# for such an extension.. The motivation for that opinion: http://blogs.msdn.com/oldnewthing/archive/2006/12/18/1317290.aspx