I'd like to have a shortcut to my application with certain desktop icons... I'm sure you have all seen Notepad++ for instance. When you right-click a txt file on your desktop "Edit with Notepad++" menuitem will show. I assume this must be something in the registry... Does anyone know how to do this programmatically in c#?
Asked
Active
Viewed 172 times
2 Answers
1
I believe you're looking for this: http://www.codeproject.com/KB/dotnet/CSShellExtContextMenuHand.aspx

Mrchief
- 75,126
- 20
- 142
- 189
1
This may be a overkill for what your are looking for, http://blogs.msdn.com/b/codefx/archive/2010/09/14/writing-windows-shell-extension-with-net-framework-4-c-vb-net-part-1.aspx
If you think this is a overkill, you can manipulate the registry in C# like described here How to create a right-click context shell shortcut "edit with Emacs"?

Community
- 1
- 1

iraSenthil
- 11,307
- 6
- 39
- 49