views:

190

answers:

2

Hello friends,

My question may be the repeated one here but even after googling i havn't got the solution yet.

I have added a shell context menu item for files i.e. when you right click on a file within explorer the menu shows my custom menu item.

I have used -

HKLM\Software\Classes*\shell\myappname HKLM\Software\Classes*\shell\myappname\command

But what i am not able to do is to add a separator within that context menu.

I am using C# 2005 for creating my windows application.

Could someone help solve my problem.

Thanks for sharing your valuable time.

+1  A: 

Check out the following link: Extending Shortcut Menus I think there is no keyword to add a separator but to create a new entry at the same level. The new set of entries will appear in a new group.

A9S6
Thanks buddy! Not my answer but provided yet another helpful link.
IrfanRaza
+2  A: 

You'll need to create a shell context menu handler to take full control over the context menu content. You should not write this in C# until .NET 4.0 becomes widely available. For now you can use C++, this web page has an example. A wrapper is described here, no idea if it is any good.

Hans Passant
Thanks nobugz for providing another link.
IrfanRaza