Solved

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

Posted on 2000-03-29
2
176 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

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