Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have drag n drop a tooltip control and set the properties as below
Active =true
AutomaticDelay=500
Autopopupdelay=5000
BackColor=Info
Forecolor=Infotext
GenerateMember=true
InitialDelay=500
IsBaloon=false
Modifiers=private
ownerdraw=false
Reshow Delay=100
ShowAlways=true
Use Animation=true
Usefading=true

I placed a label on the form and under tooltiptext property i entered "Display date"
but when i ran the form and when i mouse hover on the label it doesnt display the tool tip..I am going crazy

Please help!!!
Posted
Updated 6-May-11 5:53am
v2
Comments
Sergey Alexandrovich Kryukov 6-May-11 12:30pm    
What did you try to show a tooltip?
--SA

in Form_load put

toolTip1.SetToolTip(this.label1, "Display Date");
 
Share this answer
 
Comments
Olivier Levrey 6-May-11 11:26am    
You answered faster than me. Have a 5 ;)
Sergey Alexandrovich Kryukov 6-May-11 12:28pm    
This is a correct way. Not in Form_load (I tired to explain: there is no such event; and the Load event itself it a kind of "fake"), but anywhere. My 5 anyway.
--SA
Instead of setting the ToolTipText property for your control, use this code:
C#
yourToolTipControl.SetToolTip(this.yourControl, "Your text");


The text will be displayed for yourControl. You can call SetToolTip as many times as you want on all your controls.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 6-May-11 12:29pm    
This is correct, my 5. Good that you did not mention that ridiculous "Form_load" (see my other comment).
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900