Siddhant

Hi,

i am using vb.net 2005

In the WebBrowser, how do i get the url to which it is navigating to when the NewWindow event is fired.

In VB6 it was available for the Webbrowser control as bstrurl in the NewWindow3 event.

I referred to the post at http://forums.microsoft.com/msdn/showpost.aspx postid=7228&siteid=1

But that code is too long

I just want the Url, that's it..

Pleaes help me out...



Re: Visual Basic Express Edition NewWindow Event of WebBrowser Control...

DMan1

You may consider that code to long...but the answer to your question is in the extended NewWindow event...The code is there in that post and you can pull out what you dont want to use

 

If you want to get the URL of the New Window then you will have to use the ExtendedNewWindow Event!