C# How to add my program to context menu?

2019-06-20 18:13发布

I have a c# executable file (created from a windows form application) and I would like to be able to add this file to the context menu. Furthermore, I should point out that I need to be able to add it to Windows XP, Vista, and 7.

Thank you for any help,

2条回答
Fickle 薄情
2楼-- · 2019-06-20 18:55

It is not that difficult and it is called context menu. Check this out Add a context menu to the Windows Explorer Basically you will need to add item to the Registry.ClassesRoot.CreateSubKey registry.

查看更多
Animai°情兽
3楼-- · 2019-06-20 18:59

Yeah add context menu using Registry editor. You could do this manually. Or this method, for example MSDN LINK, but you only need to do it once. so its like a installer executed once. here another simple example Link

查看更多
登录 后发表回答