右键单击将应用程序添加到Windows [英] Add Application to Windows Right Click

查看:99
本文介绍了右键单击将应用程序添加到Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我创建了一个名为MyNotePad的记事本应用程序.

当我右键单击.txt文件时,它会显示打开",打印",编辑"等选项.


现在,当我右键单击一个txt文件时,我还需要一个其他选项,例如使用MyNotePad打开".
我希望默认应用程序将txt文件作为默认记事本打开,但是当用户选择使用MyNotePad打开"选项时,应使用MyNotepad打开它.

谁能建议我该怎么做?

谢谢和问候,
Sanju

Hi All,

i have created a notepad application called MyNotePad.

when i right click on a .txt file it is showing options like Open, Print, Edit, etc..


Now i want one more option like ''Open with MyNotePad'' when i right click on a txt file.
i want the default application to open txt file as default notepad, but when the user selects option ''Open with MyNotePad'' it should be opened with MyNotepad.

Can anyone suggest me how to do this?

Thanks and Regards,
Sanju

推荐答案

您必须在注册表中输入一些项.有关说明,请参见 http://daycounter.com/LabBook/Changing-File-Associations- With-Registry-Editor.phtml [ ^ ]
You have to enter some keys in the registry. For a description see http://daycounter.com/LabBook/Changing-File-Associations-With-Registry-Editor.phtml[^]




这是一个很好的例子,说明如何手动实现.
您只需要以编程方式进行操作,但是使用c#将其插入注册表中就不成问题了.

http://thecustomizewindows .com/2011/01/how-to-add-any-program-shortcut-to-windows-7-right-click-context-menu/ [
Hi,

here''s a good example how to achieve this manually.
You just have to do it programmatically, but it isn''t a problem to insert this values to registry with c#.

http://thecustomizewindows.com/2011/01/how-to-add-any-program-shortcut-to-windows-7-right-click-context-menu/[^]

With Best Regards


这篇关于右键单击将应用程序添加到Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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