Solved

Show hyperlink URL in status bar

Posted on 2002-03-18
3
199 Views
Last Modified: 2010-05-02
Sample code to show a hyperlink's url or title in a status bar from webBrowser control.

Thanks
0
Comment
Question by:kmartin7
[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
3 Comments
 
LVL 51

Expert Comment

by:Ryan Chong
ID: 6878768
Hi kmartin7,

Sometimes that may useful:

Receive Events from and Send Events to Open IE Windows (by Ark)
http://www.freevbcode.com/ShowCode.Asp?ID=1606
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 150 total points
ID: 6891849
'set a reference to microsoft HTML object library

'declare a variable:
Private WithEvents hDoc As HTMLDocument

'on this event:
Private Sub WB1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If (pDisp Is WB1.object) Then
    Set hDoc = WB1.Document
end if
end sub

'and in this event
Private Sub hDoc_onmousemove()
If hDoc.parentWindow.event.srcElement.tagName = "A" Then
    Me.Caption = hDoc.parentWindow.event.srcElement.href
End If
End Sub
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6894008
Thanks for "A" grade!
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

733 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