如何将我的应用程序插入Windows右键菜单? [英] How to insert my application to Windows right click menu ?
本文介绍了如何将我的应用程序插入Windows右键菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想编写一个C#.NET程序,它将对选定的图像进行一些转换.在我的桌面(或其他Windows文件夹)中选择几张图像并右键单击它们后,我希望在出现的菜单中看到我的程序.我如何将程序插入此菜单,然后单击此选项才能执行?我希望得到一些代码示例.
在此先谢谢您!
Hi,
I would like to write a C# .NET program that will do some transformations to selected images. After I select several images on my desktop (or any other windows folder) and right click them, I would like to see my program in the appeared menu. How can I insert my program to this menu, and execute it when this option is clicked ? I would appreciate a little code example.
Thanks in advance !
推荐答案
这里是一个起点: ^ ]
这应该教会您如何执行特定的文件类型: ^ ]
它实际上使用了示例中的所有文件类型,但是一旦打开regedit,弄清楚如何做一个而不是全部就不那么难了.
Here''s a starting point: Add a context menu to the Windows Explorer[^]
And this should teach you how to do specific file types: http://www.howtogeek.com/howto/windows-vista/add-open-with-notepad-to-the-context-menu-for-all-files/[^]
It actually uses all file types in the example but figuring out how to do one instead of all shouldn''t be that hard once you''ve got regedit open.
这篇关于如何将我的应用程序插入Windows右键菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文