المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Um, Opening link in new tab - not new window?



C# Programming
06-11-2009, 05:31 AM
Hi all http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif

I'm creating a web browser in C# and i've pretty much got what I needed and I keep getting stuck on one thing. When I'm browsing the web in my new browser and stumble upon a link that opens a new page in a new browser, or in a new tab or whatever, it opens that new page in internet explorer! lol. How can I stop this? It's really getting on my nerves, but it's making me laugh at the same time... I want to do something like this (and yes, i know this code will never work :p):

if Link is trying to open new page in new tab or window
then open that new page in a new tab in the current ********

... I know how to create new tabs, add a new webbrowser control to the new tab etc, i just don't know how to get those particular links to open up in a new tab. Does anybody have any ideas as to how I might go about doing this? I have looked on msdn and couldn't find anything. I also tried google and found a few links but then led me to something completely unrelated.

thanks,
jase