473,398 Members | 2,212 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,398 software developers and data experts.

Reflection of ToolTip text for controls

How can I get the tooltip in a generic way for any control that the mouse is
hovering over in a single application, I dont want to have to code the
MouseHover event handler on every form.
Nov 15 '05 #1
3 2239
What do you need that the tooltip control doesn't provide?

Add one to the form, then add a tooltip for each control on the form using
the extended property "tooltip text on tooltip1" which appears in the
properties.

--
Bob Powell [MVP]
C#, System.Drawing

September's edition of Well Formed is now available.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Blog http://bobpowelldotnet.blogspot.com

"Mr.Tickle" <Mr******@mrmen.com> wrote in message
news:u9*************@TK2MSFTNGP12.phx.gbl...
How can I get the tooltip in a generic way for any control that the mouse is hovering over in a single application, I dont want to have to code the
MouseHover event handler on every form.

Nov 15 '05 #2
I want to take that text or an some other text i have and place that on a
panel in an area for every control that the mouse hovers over.
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
What do you need that the tooltip control doesn't provide?

Add one to the form, then add a tooltip for each control on the form using
the extended property "tooltip text on tooltip1" which appears in the
properties.

--
Bob Powell [MVP]
C#, System.Drawing

September's edition of Well Formed is now available.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Blog http://bobpowelldotnet.blogspot.com

"Mr.Tickle" <Mr******@mrmen.com> wrote in message
news:u9*************@TK2MSFTNGP12.phx.gbl...
How can I get the tooltip in a generic way for any control that the
mouse is
hovering over in a single application, I dont want to have to code the
MouseHover event handler on every form.


Nov 15 '05 #3
You need to write your own Extender Provider control to do this.

Create an extender provider that adds a text property to all controls and
have it service their mouse hover event. When the event is trapped, the
control will raise an event that you can use to update a status bar panel or
indeed, any other text display object with the contents of the property,

Issue 1 of Well Formed has an extender-provider that does this for menu
items. The control can easily be adapted for your needs.

--
Bob Powell [MVP]
C#, System.Drawing

September's edition of Well Formed is now available.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Blog http://bobpowelldotnet.blogspot.com

"Mr.Tickle" <Mr******@mrmen.com> wrote in message
news:#U**************@TK2MSFTNGP10.phx.gbl...
I want to take that text or an some other text i have and place that on a
panel in an area for every control that the mouse hovers over.
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
What do you need that the tooltip control doesn't provide?

Add one to the form, then add a tooltip for each control on the form using the extended property "tooltip text on tooltip1" which appears in the
properties.

--
Bob Powell [MVP]
C#, System.Drawing

September's edition of Well Formed is now available.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Blog http://bobpowelldotnet.blogspot.com

"Mr.Tickle" <Mr******@mrmen.com> wrote in message
news:u9*************@TK2MSFTNGP12.phx.gbl...
How can I get the tooltip in a generic way for any control that the

mouse
is
hovering over in a single application, I dont want to have to code the
MouseHover event handler on every form.



Nov 15 '05 #4

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

Similar topics

6
by: Robert | last post by:
Hello. I have been trying out the Lebans ToolTip Classes at http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a form. The classes I am using are located at...
8
by: Rachel Suddeth | last post by:
I have an application where some forms have many (say 100) UserControls on them (each of which contain a label, an image, and a data entry control), and each UserControl has a ToolTip provider...
0
by: Steve R | last post by:
I've built a composite web custom control with a lot of child controls. I assigned ToolTip values to some of these controls. The ToolTip pop-ups were working fine until I monkeyed with the order...
6
by: ltt19 | last post by:
HI everyone, So, I have many buttons, and all of them must show a tooltip with the same string, except one word, that I must read this owrd from a variable. Although, the "ToolTip on x" property...
1
by: Steve | last post by:
I want to show a tooltip over one of my WinForm controls at startup. The control is part of a UserControl that I'm hosting in a CAP DeckWorkspace. In other words, I have many user controls that I...
5
by: John Dolinka | last post by:
I am trying to change a tooltip on an asp.net (framework 2) textbox with out a post back to the server. I can access many of the textbox properties and change them but not the tooltip. Below is a...
4
by: Pieter | last post by:
Hi, Using VB.NET 2.0, Windows Forms. I want the ToolTip to be shown on every TextBox, ComboBox and DataGridView continuously, and show the contence of these controls. Is there a way to add the...
4
by: rn5a | last post by:
A DataList displays 3 columns - Product, Category & Price. These columns are populated with records from a SQL Server 2005 DB table. Apart from the above 3 DB columns that the resultset retrieves,...
2
by: =?Utf-8?B?Unlhbg==?= | last post by:
I have a winform with 20 text boxes; some text boxes have default values and some are blank. I have the following code to display ToolTip for each of the TextBox controls: ...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.