从c#右键菜单上下文打开图片 [英] open picture from right click menu context in c#

查看:132
本文介绍了从c#右键菜单上下文打开图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


i让我的程序在Windows中右击,但当我右键单击图片并在我的程序中打开它没有显示在图片框中,我怎么能让它在图片框中打开?

这些是我的问题图片

右键单击窗口中的图像上下文 [ ^ ]

这是我的prgram图像 [ ^ ]

推荐答案

可能它实际上是如何将应用程序添加到注册表中的Associated Files列表:您需要将文件指定为参数,以便Windows通过它。

请参见: http://stackoverflow.com/questions/10892433/open-file-with-association [ ^ ]
Probably, it's actually to do with how you added the application to the Associated Files list in the registry: You need to specify the file as a parameter there in order for windows to pass it through.
See here: http://stackoverflow.com/questions/10892433/open-file-with-association[^]


这篇关于从c#右键菜单上下文打开图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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