Solved

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

Posted on 2000-03-29
2
178 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

726 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