Windows Develop Bookmark and Share   
 index > Windows Forms General > Retrieving a tooltip
 

Retrieving a tooltip

Hello,

I wish to receive the toopltip whenever the application is supposed to display it, and then show it in a Label control. For instance, I would like to define a tooltip for a TextBox, and whenever the user hovers over it, I would like to show the tooltip text on my Label instead of the usual yellow popup. How may I do this?

Kasper
KasperDk  Monday, May 08, 2006 6:23 PM

Now that you have defined a tooltip for the textbox,you can set the active property of the tooltip to false.

this.toolTip1.Active = false;

then in the hover event,

Get the tooltip associated with the textbox as -

string toolTip = this.toolTip1.GetToolTip(this.textBox1);

//Set the value in the label

this.label1.Text = toolTip;

Hope this helps

Karthik Krishnaswami  Tuesday, May 09, 2006 7:41 AM

You can use google to search for other answers

Custom Search

More Threads

• Can Windows Client delete my A record on DNS Server when is Log Off?
• Urgent...Problem in Mozilla and IE... (W2K)
• Software to read text out loud...
• Is OpenFile dialog available as a control?
• Mutli frame images?
• converting image in a clipboard to memory stream
• Message Queue.
• set char to null or the equivalent of zero
• richTextBox formatting
• Can I Run a Separate Application Inside of a Form In my C# Application ?