如何设置默认浏览器抛出c#.net代码? [英] How to set default browser throw c#.net code ?

查看:61
本文介绍了如何设置默认浏览器抛出c#.net代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一个窗口应用程序,我想在应用程序上将默认浏览器设置为Mozilla Firefox,一键单击.
我在c#.net中的应用程序.
我该怎么做?使用代码??
请帮助我..

hi all,
i have a window application i want to set default browser to Mozilla Firefox on my application one button click .
my application in c#.net .
how i can done it ? using code ??
plz help me ..

推荐答案

您将在以下Windows注册表中找到有关其说明的说明: http://msdn.microsoft.com/en-us/library/ms724475.aspx [ ^ ].

要在.NET中更改注册表中的记录,您将需要使用类Microsoft.Win32.Registry,请参见 http://msdn.microsoft.com/en-us/library/microsoft.win32.registry.aspx [
You will find the explanation on how it''s prescribed on the Windows registry here: http://newoldthing.wordpress.com/2007/03/23/how-does-your-browsers-know-that-its-not-the-default-browser/[^].

See also http://msdn.microsoft.com/en-us/library/ms724475.aspx[^].

To change the records in registry in .NET you will need to use the class Microsoft.Win32.Registry, see http://msdn.microsoft.com/en-us/library/microsoft.win32.registry.aspx[^].

—SA


这篇关于如何设置默认浏览器抛出c#.net代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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