C#浏览器设置为默认浏览器 [英] C# browser set to default browser

查看:509
本文介绍了C#浏览器设置为默认浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用c#Web浏览器控件制作一个Web浏览器...一切正常..但是最近我在自己的浏览器上使用了facebook,进行了测试,然后单击了utube链接,它改为在Internet Explorer中打开在我自己的浏览器中打开它...
我在网上搜索并想到,必须将自己的浏览器设置为默认浏览器,以解决此问题..
现在我不知道如何将浏览器设置为默认..
如果有人可以帮助我,我将非常高兴..
我是否需要从代码,注册表或更改Internet选项设置中做些什么??

[edit]虚假粗体已删除-OriginalGriff [/edit]

I am making a web browser using c# web browser control...Everything is working fine..but recently i was using facebook on my own browser, for testing and i clicked on utube link, and it opened in internet explorer instead of opening it in my own browser...
I searched on net and came up with that i have to set my own browser to default, to fix this problem..
Now i dont know how to make my browser to default..
If any one can help me i would be very glad..
Do i have to do something from code, or registry or changing the internet option setting...?

[edit]Spurious bold removed - OriginalGriff[/edit]

推荐答案

它由注册表设置控制:http://newoldthing.wordpress.com/2007/03/23/how-does -your-browsers-know-that-its-not-the-default-browser/ [
It is controlled by registry settings: http://newoldthing.wordpress.com/2007/03/23/how-does-your-browsers-know-that-its-not-the-default-browser/[^]

I''m not entirely sure that that would fix your problem though, because the WebBrowser control is Internet Explorer underneath.

You may need to intercept/rewrite any anchor targets and javascript window calls.


这篇关于C#浏览器设置为默认浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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