Solved

VB.NET Webbrowser - How to find the URL webbrowser is navigating to?

Posted on 2012-03-12
1
394 Views
Last Modified: 2012-06-22
How do I find the url webbrowser is navigating to? Let's say I'm on index.php and I submit the form. Form is submitted to submit.php and it transfers you to done.php

How do I catch when browser is navigating to submit.php?


Thanks.
0
Comment
Question by:mropenmind
1 Comment
 
LVL 38

Accepted Solution

by:
PaulHews earned 500 total points
ID: 37711482
The webbrowser control exposes a Navigating event that is triggered before the navigation is complete.

You can then retrieve the actual URL being navigated to from the event argument:
Private Sub wb_Navigating(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserNavigatingEventArgs) Handles wb.Navigating
    Dim URLString As String = e.Url.ToString
End Sub        

Open in new window

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question