IrfanRaza
IrfanRaza

Reputation: 3058

Shell menu item separator

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.

Upvotes: 2

Views: 1200

Answers (2)

Hans Passant
Hans Passant

Reputation: 942518

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.

Upvotes: 2

A9S6
A9S6

Reputation: 6685

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.

Upvotes: 1

Related Questions