Question WebBrowser control open links in default browser?

yifanlu

New member
Joined
Sep 18, 2008
Messages
2
Programming Experience
3-5
I am playing around with putting small banner ads in my applications, and was wondering how to make WebBrowser always open links in the default browser instead of opening links in the WebBrowser control.
 
Use the WebBrowser Navigating event where you set e.Cancel=False and Process.Start the e.Url.
 
Lol, thats the exact code I'm using right now, I was wondering if there is a better one, but thanks for the reply.
(You do mean e.cancel = True, right?)
 
Last edited:
Yes Cancel=True was what I meant, just a spelling error :)
 
Back
Top