如何在c#中为图像添加windows上下文菜单

问题描述:


i在互联网上搜索上下文菜单并找到结果但是他们不是我想要的答案

i当你右键点击图片时(右键点击图片)它显示我的程序怎么能这样做?

i在右键单击图片中想要这样的

右键单击Windows中的图像 [ ^ ]

最好的问候

Hi i searched in the internet for context menu and found result but they were not the answer i wanted
i want when you right click the image (just right click on image) it show my program how can i do it?
i want like this in right click image
Right Click in image in Windows[^]
Best Regards

如果我理解正确,你想将图像文件与你自己的程序相关联。



如果是这样,请查看以下链接开始:



http://msdn.microsoft.com/en-us/library/windows/ desktop / hh127451(v = vs.85).aspx [ ^ ]



C# FileAssociation Class [ ^ ]



https://social.msdn。 microsoft.com/Forums/vstudio/en-US/d89af73d-3ad7-485a-b6c4-94dadf13659e/how-do-i-associate-a-file-extension-with-my-application?forum=vbgeneral [ ^ ]
If I understand correctly, you want to associate the image files with your own program.

If so, look at the links below to get started:

http://msdn.microsoft.com/en-us/library/windows/desktop/hh127451(v=vs.85).aspx[^]

C# FileAssociation Class[^]

https://social.msdn.microsoft.com/Forums/vstudio/en-US/d89af73d-3ad7-485a-b6c4-94dadf13659e/how-do-i-associate-a-file-extension-with-my-application?forum=vbgeneral[^]


根据附带的截图,你想要添加一个上下文Wi的敏感外壳扩展ndows Explorer。在这里查看:如何使用。编写Windows Shell扩展。 NET语言 [ ^ ]
Based on the screenshot attached, you want to add a context sensitive shell extension for Windows Explorer. Look around here: How to Write Windows Shell Extension with .NET Languages[^]