Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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.
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…
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…

757 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

18 Experts available now in Live!

Get 1:1 Help Now