G Berdal
G Berdal

Reputation: 1164

How to add a new menuitem to desktop icons in windows?

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#?

Upvotes: 0

Views: 181

Answers (2)

iraSenthil
iraSenthil

Reputation: 11577

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"?

Upvotes: 1

Mrchief
Mrchief

Reputation: 76208

I believe you're looking for this: http://www.codeproject.com/KB/dotnet/CSShellExtContextMenuHand.aspx

Upvotes: 1

Related Questions