Click here to Skip to main content
15,947,958 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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]
Updated 20-Oct-12 15:36pm

1 solution

It is controlled by registry settings:[^]

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.
Share this answer
Anandkumar D 22-Oct-12 1:59am    
Yvan Rodrigues is correct, May be YouTube link they are opening in New window.
If a Page(loaded in your browser) contains the links that will opened in new window, then your browser will open the links in new window. You need to handle these things with JAVA SCRIPT only.
Member 9357064 4-Nov-12 12:31pm    
I will be very glad if u can help me a little more about handling with javascript or just give me some reference...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900