如何在c#中为图像添加windows上下文菜单 [英] how to add windows context menu for image in c#

查看:87
本文介绍了如何在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[^]


这篇关于如何在c#中为图像添加windows上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆