VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



msflexgrid cell tips

by tv (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (7 Votes)

Simple code to display tooltips displaying the text, regardless of length, of an msflexgrid cell. Tooltips are displayed when the mousepointer passes over any cell.

Assumes
Just place it the mouse move event.
Side Effects
None that I know of.

Rate msflexgrid cell tips

Private Sub Grid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
Static txt As String
Dim tip As String
tip = Grid1.TextMatrix(Grid1.MouseRow, Grid1.MouseCol)
 If txt <> tip Then
  Grid1.ToolTipText = tip
  txt = tip
 End If
End Sub

Download this snippet    Add to My Saved Code

msflexgrid cell tips Comments

No comments have been posted about msflexgrid cell tips. Why not be the first to post a comment about msflexgrid cell tips.

Post your comment

Subject:
Message:
0/1000 characters