473,386 Members | 1,798 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,386 software developers and data experts.

Display Tooltip When Control Recieves Focus

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#)?
Nov 15 '05 #1
5 9406
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" <an*******@discussions.microsoft.com> wrote in message
news:32**********************************@microsof t.com...
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#)?
Nov 15 '05 #2
Use
SetToolTip method comes with the tool tip object

"Vinny Vinn" <an*******@discussions.microsoft.com> wrote in message news:41**********************************@microsof t.com...


----- Champika Nirosh wrote: -----

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" <an*******@discussions.microsoft.com> wrote in message
news:32**********************************@microsof t.com...
> 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#)?

Champika,

Thanks for responding.I quess i wasnt so clear as to my problem.I have the tooltip set to a control,for example a listview,normally if you want to display the tooltip message you would hover the mouse over the control and the tooltip message is displayed.
I would like to know how I can to have the tooltip message displayed when the control gains the focus,for example if you click in the control or you tab into the control (without the mouse hovering over the control)??


Nov 15 '05 #3
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.
Nov 15 '05 #4
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" <an*******@discussions.microsoft.com> wrote in message
news:20**********************************@microsof t.com...
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.
Nov 15 '05 #5
Nirosh

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

Thanks for your help
Vinny
Nov 15 '05 #6

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

Similar topics

1
by: SHYAM SUNDAR E G | last post by:
hi, I want to display tooltip when Hovered on the Combo Box. like, once if we click on the combo, displays all items in the Combo, when i move the mouse on each item, it has to display the tooltip...
1
by: KS | last post by:
If I have a button like this. <input type="button" name="foo" value="HIT ME" title="HIT ME HARD" /> If I move the cursor over it the title get displayed. I want the title to get displayed when the...
3
by: Gidi | last post by:
Hi, Is it possible to know when TextBox loses focus to which object it lost it? what i mean is when the LostFocus Event occur is it possible to know which object got the focus instead? thanks,
4
by: Jon Slaughter | last post by:
I've created some custom controls and forms that allow the feature to temporarily transfer focus to a control that has been entered by the mouse. Everything seems to work fine but the problem I...
3
by: Fritz Switzer | last post by:
I'm trying to AppendText to a TextEdit. I have a procedure that will go through the controls on a Windows form and return the control that has "focus". I have a number of TextEdits on my form...
1
by: jjwhite01 | last post by:
I am working on a web form that contains a Calendar control with an image button that makes the calendar appear and disappear. However, I would like to set the visible property of the Calendar...
3
by: Stanton | last post by:
How can I get an image to appear when a control has the focus in a form? I would assume expression builder might be useful, but whenever I try to put an expression into an event box, it tries to...
3
by: StinkyDuck | last post by:
Is there a way to detect when a control gains focus on a webform? Say I have two text boxes. After the user types in information on the first text box and hits the tab key or clicks on the second...
2
by: Tom | last post by:
I have a ContextMenuStrip, and I would like to present the user with a tooltip like control when they press a certain button on my strip. I basically just need the user to enter some notes about...
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: 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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.