Link to home
Start Free TrialLog in
Avatar of EasyRider
EasyRider

asked on

Show URL on mouseover w/WebBrowser

Using the IE WebBrowser in a VB project, how can I show the URL in the StatusBar when the mouse is over a link?
Avatar of Triskelion
Triskelion
Flag of United States of America image

You can control that functioin with HTML.
Use a combination of onMouseOver and window.status

http://home.sprintmail.com/~hines/photog.htm

<A HREF="cowboy01.jpg" onMouseOver="window.status='Film=HP5';return true" onMouseOut="window.status=''"><img src="s_cowby1.jpg" width=72  height=100 alt="cowboy01.jpg" border=0><br>Cowboy 1</A><td>
Avatar of jbil
jbil

On your form put webbrowser control and a statusbar
and code like this.


Private Sub Form_Load()
StatusBar1.Style = sbrSimple
WebBrowser1.GoHome
End Sub

Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
Form1.StatusBar1.SimpleText = Text
End Sub

Or to use with style sbrnormal...

Private Sub Form_Load()
StatusBar1.Style = sbrNormal
WebBrowser1.GoHome
End Sub

Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
StatusBar1.Panels(1).Text = Text
End Sub

Avatar of EasyRider

ASKER

Triskelion, sorry, your answer is more for HTML writting then a VB project. jbil's comments is the correct answer I was looking for since it is VB code and not HTML code.
ASKER CERTIFIED SOLUTION
Avatar of jbil
jbil

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial