Solved

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

Posted on 2012-03-12
1
388 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now