how to open clickable link in new tab webbrowser

I have a form with Tabcontrol that has 2 tab pages.... tabpage1 and tabpage2.

  • Tabpage1 has webbrowser1 and tabpage2 has webbrowser2.
  • webbrowser1 navigates to a URL, example will be yahoo.com.
  • when I click on any of the links in yahoo.com, I would like that link to be opened in the tabpage2-webbrowser2.

I am new to vb.net, so please make it simple and not complicated, this is for school.

Answers


1.Always cancel NewWindow event

2.Catch all links clicking

Everything explained here.

But the code is in C#. You need to check it with VB.NET.


Need Your Help

How to display a animated gif in a screen saver plugin?

objective-c osx animated-gif screensaver

Okay so I'm a new to objective-c. (irrelevant, but I'm looking forward to swift!:D) and I'm trying to create a screen saver plugin that will display an animated gif.

Visual Studio randomly deletes code from the designer

c# visual-studio-2010 windows-forms-designer

Has anyone else experience problems with the Visual Studio WinForms designer where it randomly deletes code?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.