C# How to add my program to context menu?

烂漫一生 提交于 2019-12-12 11:14:59

问题


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,


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/6702627/c-sharp-how-to-add-my-program-to-context-menu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!