Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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