Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2000-03-29
2
Medium Priority
?
182 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 200 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

722 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