Question How to force webbrowser to use single window in 2008 VB express?

catdance

Member
Joined
Aug 5, 2009
Messages
13
Programming Experience
Beginner
I am writing a VB program in VB 2008 express edition, and I need to make a simple web browser used by touch screen users. I have done making the simple web browser to browser the webpage, but when I open some links they are opened in the external IE rather than the VB web browser, how can I force all web page to be opened in the VB software?


thanks.
 
Post 2 in this thread explains it: http://www.vbdotnetforums.com/other/10379-webbrowser-2-0-newwindow.html

The recipe is to copy the module linked to and compile, add the ExtendedWebBrowser control from Toolbox to your form instead of the default WebBrowser, then handle the NewWindowExtended event where you cancel the new window and navigate current browser to the given url.
 
Back
Top