Search code examples
c#contextmenuwindows-shellwindows-shell-extension-menu

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.


Solution

  • 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.