473,382 Members | 1,717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to show link in a textbox when mouse hovers on Webbrowser link?

Hi,
I couldn't find a necessary class which shows when mouse hovers on a
link in Webbrowser control.

Think of there's a status bar(text), when mouse comes on a link, the
URL must be shown in this status bar.

How can i do this?

Thanks.
Dec 1 '07 #1
5 8030
Kimi,

That is not a class, that is an event, the best in my idea is just the
Textbox enter, that fires only ones. (There is a hoover, but that is without
sence it has just to be showed as you enter it). If you really need it there
is as well a textbox.leave.

Cor

"kimiraikkonen" <ki*************@gmail.comschreef in bericht
news:ba**********************************@s12g2000 prg.googlegroups.com...
Hi,
I couldn't find a necessary class which shows when mouse hovers on a
link in Webbrowser control.

Think of there's a status bar(text), when mouse comes on a link, the
URL must be shown in this status bar.

How can i do this?

Thanks.
Dec 1 '07 #2
On Dec 1, 9:33 pm, "Cor Ligthert[MVP]" <notmyfirstn...@planet.nl>
wrote:
Kimi,

That is not a class, that is an event, the best in my idea is just the
Textbox enter, that fires only ones. (There is a hoover, but that is without
sence it has just to be showed as you enter it). If you really need it there
is as well a textbox.leave.

Cor

"kimiraikkonen" <kimiraikkone...@gmail.comschreef in berichtnews:ba**********************************@s 12g2000prg.googlegroups.com...
Hi,
I couldn't find a necessary class which shows when mouse hovers on a
link in Webbrowser control.
Think of there's a status bar(text), when mouse comes on a link, the
URL must be shown in this status bar.
How can i do this?
Thanks.
Hi Cor,
Yes, event (hover) must occur (show URL) when mouse is on webbrowser
control. However i couldn't find a hover event unlike a button. The
problem part is hovering. There is no such event in webbrowser control.
Dec 1 '07 #3
Kimi,

You need to place the webbrowser on a form, by instance beneath a textbox.

Then you can fill the textbox with the url that you use or get from the
navigate.

Cor

"kimiraikkonen" <ki*************@gmail.comschreef in bericht
news:f2**********************************@v4g2000h sf.googlegroups.com...
On Dec 1, 9:33 pm, "Cor Ligthert[MVP]" <notmyfirstn...@planet.nl>
wrote:
>Kimi,

That is not a class, that is an event, the best in my idea is just the
Textbox enter, that fires only ones. (There is a hoover, but that is
without
sence it has just to be showed as you enter it). If you really need it
there
is as well a textbox.leave.

Cor

"kimiraikkonen" <kimiraikkone...@gmail.comschreef in
berichtnews:ba**********************************@ s12g2000prg.googlegroups.com...
Hi,
I couldn't find a necessary class which shows when mouse hovers on a
link in Webbrowser control.
Think of there's a status bar(text), when mouse comes on a link, the
URL must be shown in this status bar.
How can i do this?
Thanks.

Hi Cor,
Yes, event (hover) must occur (show URL) when mouse is on webbrowser
control. However i couldn't find a hover event unlike a button. The
problem part is hovering. There is no such event in webbrowser control.
Dec 1 '07 #4

"kimiraikkonen" <ki*************@gmail.comwrote in message
news:f2**********************************@v4g2000h sf.googlegroups.com...
On Dec 1, 9:33 pm, "Cor Ligthert[MVP]" <notmyfirstn...@planet.nl>
wrote:
>Kimi,

That is not a class, that is an event, the best in my idea is just the
Textbox enter, that fires only ones. (There is a hoover, but that is
without
sence it has just to be showed as you enter it). If you really need it
there
is as well a textbox.leave.

Cor

"kimiraikkonen" <kimiraikkone...@gmail.comschreef in
berichtnews:ba**********************************@ s12g2000prg.googlegroups.com...
Hi,
I couldn't find a necessary class which shows when mouse hovers on a
link in Webbrowser control.
Think of there's a status bar(text), when mouse comes on a link, the
URL must be shown in this status bar.
How can i do this?
Thanks.

Hi Cor,
Yes, event (hover) must occur (show URL) when mouse is on webbrowser
control. However i couldn't find a hover event unlike a button. The
problem part is hovering. There is no such event in webbrowser control.
I have an app which uses the webcontrol, so I opened it and what I found is
the following:

WebBrowser control has no MouseHover event.
WebBrowser has Control as a base class and Control has a MouseHover event.

I then in the load of the form created a Control variable which I set to the
WebBrowser control. I could then use AddHanlder to add a MouseHover event
handler to the WebBrowser. Testing it showed that no events were raised for
the MouseHover when over the browser. Since the WebBrowser control does not
expose the MouseHover it must be eating the events itsself.

Perhaps you can create a mouse event handler for the application (I don't
know if that can be done) and write code to simulate the MouseHover.
Otherwise I think you are out of luck there. I know that IE does what you
want to do so it can be done.

LS

Dec 2 '07 #5
On Dec 2, 6:07 am, "Lloyd Sheen" <a...@b.cwrote:
"kimiraikkonen" <kimiraikkone...@gmail.comwrote in message

news:f2**********************************@v4g2000h sf.googlegroups.com...
On Dec 1, 9:33 pm, "Cor Ligthert[MVP]" <notmyfirstn...@planet.nl>
wrote:
Kimi,
That is not a class, that is an event, the best in my idea is just the
Textbox enter, that fires only ones. (There is a hoover, but that is
without
sence it has just to be showed as you enter it). If you really need it
there
is as well a textbox.leave.
Cor
"kimiraikkonen" <kimiraikkone...@gmail.comschreef in
berichtnews:ba**********************************@s 12g2000prg.googlegroups.com...
Hi,
I couldn't find a necessary class which shows when mouse hovers on a
link in Webbrowser control.
Think of there's a status bar(text), when mouse comes on a link, the
URL must be shown in this status bar.
How can i do this?
Thanks.
Hi Cor,
Yes, event (hover) must occur (show URL) when mouse is on webbrowser
control. However i couldn't find a hover event unlike a button. The
problem part is hovering. There is no such event in webbrowser control.

I have an app which uses the webcontrol, so I opened it and what I found is
the following:

WebBrowser control has no MouseHover event.
WebBrowser has Control as a base class and Control has a MouseHover event.

I then in the load of the form created a Control variable which I set to the
WebBrowser control. I could then use AddHanlder to add a MouseHover event
handler to the WebBrowser. Testing it showed that no events were raised for
the MouseHover when over the browser. Since the WebBrowser control does not
expose the MouseHover it must be eating the events itsself.

Perhaps you can create a mouse event handler for the application (I don't
know if that can be done) and write code to simulate the MouseHover.
Otherwise I think you are out of luck there. I know that IE does what you
want to do so it can be done.

LS
Hi Lloyd, you're right that webbrowser control has no mouse hover
event unlike a simple button. Although this control is Internet
Explorer-based, it must have had hovering method as millions of IE
users use this funciton which allows users to see the hovered URL on a
status-bar before navigating.

A simple and verified code will be appreciated.

Thanks.
Dec 2 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tom | last post by:
Hi Can anyone tell me if it is possible to get the position within a textbox of the character under the mouse when it hovers over the textbox in question? Thanks Tom
4
by: Just Me | last post by:
I want to make a small window popup when the mouse hovers. I've looked in the Help but can't find any info (probably can't think of a good keyword) Are ToolTips control used for that? Any...
0
by: Lucky | last post by:
hi guys, i'm looking for a soultion that helps me to show the subitem text of the listview control in the tooltip when the mouse pointer hovers on the subitem. i've found on solution, according to...
4
by: Jonathan Wood | last post by:
Greetings, I'm new to ASP.NET and am trying to figure out how to popup a help window. I was able to get the following code to work: helpButton1.Attributes.Add("onclick",...
2
by: =?Utf-8?B?c25naWxi?= | last post by:
The WebBrowser control is described as exposing numerous public mouse events. See: http://msdn2.microsoft.com/en-us/library/ayestehw.aspx. many of the event are described as: "This event is not...
1
by: Bart Lateur | last post by:
I'd like to replace the text content of a subdiv by "...", except when the mouse is hovering either above it, or above another subdiv of the same parent. Something like: <div class="parent">...
0
by: cheenusri | last post by:
Hello friends, i am running slide show(pps file) in vb.net form using webbrowser control in it.while running the form, if right click on the slide, it show some popup menu, here i wan to...
1
by: P-GPS | last post by:
Hi, 1. I have a webbrowser control in a VB .NET (3.5) application. 2. I want to capture the event and call a function whenever the mouse is hovering over a hyperlink. How do I do this? 3. I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.