Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All,

Is it possible to have a balloon tooltip in the datagridview? Example: if i hover the mouse in a cell the balloon tooltip will show. Thank you!
Posted
Comments
Sergey Alexandrovich Kryukov 18-Jan-13 1:16am    
And what, reading a bit of MSDN help was not a chance? :-)
—SA
Janna Dela Cruz 18-Jan-13 1:37am    
i tried it, here is the code i used.

Dim commentToolTip As New ToolTip()
commentToolTip.ToolTipTitle = "Comment"
commentToolTip.UseFading = True
commentToolTip.UseAnimation = True
commentToolTip.IsBalloon = True
commentToolTip.ShowAlways = True
commentToolTip.AutoPopDelay = 5000
commentToolTip.InitialDelay = 1000
commentToolTip.ReshowDelay = 500
commentToolTip.SetToolTip(dgvProduction(GetX, GetY), GetComment)


GetX and GetY are sub to get the datagrid cell address.
The GetComment is a function to get the comment/text in the database.


Now, i'm getting an error in the SetToolTip part. It's says about casting the datagridview into forms.control. I don't know how to fixed it and i can't also find a way to fixed it.
demitrios poulos 12-Dec-22 11:20am    
yrytyyr
demitrios poulos 12-Dec-22 11:21am    
9799979789

1 solution

Yes. What's wrong about System.Windows.Forms.ToolTip? It will do all you need in this case. Please see:
http://msdn.microsoft.com/en-us/library/system.windows.forms.tooltip.aspx[^].

—SA
 
Share this answer
 

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