Reflection of ToolTip text for controls

M

Mr.Tickle

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.
 
B

Bob Powell [MVP]

M

Mr.Tickle

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.
 
B

Bob Powell [MVP]

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
 

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