Solved

Capturing url of current web page in focus using vb.net

Posted on 2007-04-03
1
300 Views
Last Modified: 2008-02-07
How can I use vb.net to capture the name (or url) of the current web page in focus?

Example
If I open a web page I ant a textbox to get the url of that page. If I open another page and give it focus I want the url of that page displayed in a textbox.
0
Comment
Question by:npl77
1 Comment
 
LVL 28

Accepted Solution

by:
iboutchkine earned 500 total points
ID: 18849788
you can get usrl of allopen windows

' Requires a reference to "Microsoft Internet Controls" ("SHDocVw.dll").
For Each IE As InternetExplorer In New ShellWindows()
    MsgBox(IE.LocationURL)
Next IE
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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

821 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