问题
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