I've created a web browser application which makes use of the web browser control in VB 2005. However, whenever the user clicks a link which opens in a new window, Internet Explorer is used instead of my web browser application. When I checked the new window event of the web browser, there didn't seem to be any way to get the URL of the link or cancel the opening of Internet Explorer. Does anyone know how I can stop Internet Explorer from opening and use my browser instead?
VB web browser - new window
Collapse
X
-
-
Hi,
You have to either disable the popups in your web browser control OR
disable the right click menu by which user can open a page in new window.
Originally posted by aaaaaaaaaaaaaaa aaaaaaaaaaI've created a web browser application which makes use of the web browser control in VB 2005. However, whenever the user clicks a link which opens in a new window, Internet Explorer is used instead of my web browser application. When I checked the new window event of the web browser, there didn't seem to be any way to get the URL of the link or cancel the opening of Internet Explorer. Does anyone know how I can stop Internet Explorer from opening and use my browser instead? -
Private Sub WebBrowser1_New Window(ByVal sender As Object, ByVal e As System.Componen tModel.CancelEv entArgs) Handles WebBrowser1.New Window
e.Cancel = True
End Sub
This will cancel the event of opening the new window, however I am unsure how to get the URL of the window being opened.Comment
Comment