Display Tooltip When Control Recieves Focus

G

Guest

I would like to display a ToolTip (WinForms) when the Control associated recieves focus (when the control.enter event is triggered) as oppose to having the ToolTip displayed when the mouse hovers over the control,How can this be accomplished(Im developing in C#)?
 
C

Champika Nirosh

Hi Vinny,

Your question is not very clear but as I got it

you should be able to do it by just dragging the Tool Tip control you found
in the Tool box directly to the Form. once you did it you will havethe tool
tip property available for the control in that form.

Nirosh.
Vinny Vin said:
I would like to display a ToolTip (WinForms) when the Control associated
recieves focus (when the control.enter event is triggered) as oppose to
having the ToolTip displayed when the mouse hovers over the control,How can
this be accomplished(Im developing in C#)?
 
G

Guest

That will Set The ToolTip to The Specified Control ,But The ToolTip Message Is Only Displayed When The Mouse Hovers Over The Control.I Would Like The ToolTip Message To Be Displayed When The Control Recieves Focus.
 
C

Champika Nirosh

I guess you have bit of a work here one is writting a tool tip class by
extending the exiting one, here you may have to refer to the c# spec and
find which method fired when mouse hoover a control and you can fire the
same method as the focus event fired.

Again there are some other control like balloon tip control, you may find it
if you search in google, which even you can develop quite easilly,

Nirosh.

Vinny Vin said:
That will Set The ToolTip to The Specified Control ,But The ToolTip
Message Is Only Displayed When The Mouse Hovers Over The Control.I Would
Like The ToolTip Message To Be Displayed When The Control Recieves Focus.
 
G

Guest

Nirosh

I was hoping there was another than tearing apart the tooltip controls dll,but a guess there isnt

Thanks for your help
Vinny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top