Solved

How to dertermin the URL that IE or Netscape is on.

Posted on 2000-03-29
2
175 Views
Last Modified: 2012-05-04
Please show me the code necessary to create a VB app that will reveal the URL that either IE or Netscape browser is currently on, running on the same machine. The app needs to change what it says (textbox) as the browser switches URLs.
0
Comment
Question by:a6106a
2 Comments
 
LVL 2

Accepted Solution

by:
nunga earned 50 total points
ID: 2667388
Hi

These two links contain code that will allow you to do what you want.

To recognise changes to the URL, simply add a timer control to your project (with an interval of one second) that will check the current URL.

-------------------
Description: This small application uses DDE (Dynamic data exchange) and the WWW_GetWindowInfo to retrieve the Window title and url being displayed in either Netscape Navigator or Internet Explorer. It works for all versions of Internet Explorer > 3.0. Note: This code is not dependent on the FindWindow Api call (which is the often used but unreliable method).
http://www.vbcode.com/code/Getting_urls.zip

-----------------
Description: Gets the URL string from the ie browser edit window. This also works in access97 vba. I put it in one subroutine to keep things simple and easy to read.
http://www.vbcode.com/asp/showsn.asp?theID=1005


I hope you find this useful.

0
 

Author Comment

by:a6106a
ID: 2668985
Perfect Thanks!
By the way, it looks like you found that on a source that may have lots of such suggestions. Can you tell me where that is for the future?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Use Multiple Forms 4 48
Macro: print each sheet to pdf using ExportAsFixedFormat 11 38
How to compare ms sql hashbytes results within vb6 5 51
Child Form in front 4 35
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

914 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

12 Experts available now in Live!

Get 1:1 Help Now