Chance1234
IS-IT--Management
how could i get a tooltip text to appear when a user is over a certain cell in a MSFlexgrid control ?
Filmmaker, gentlemen and East end club promoter
Filmmaker, gentlemen and East end club promoter
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub MSFlexGrid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
Dim C, R As Long
Dim H1, H2, W1, W2 As Long
Dim MyRowName, MyColName As String
For R = 0 To MSFlexGrid1.Rows - 1
H1 = MSFlexGrid1.RowPos(R)
H2 = MSFlexGrid1.RowHeight(R)
If y >= H1 And y <= (H1 + H2) Then
MyRowName = " Row = " & R
Exit For
End If
Next R
For C = 0 To MSFlexGrid1.Cols - 1
W1 = MSFlexGrid1.ColPos(C)
W2 = MSFlexGrid1.ColWidth(C)
If x >= W1 And x <= (W1 + W2) Then
MyColName = " Col = " & C
Exit For
End If
Next C
MSFlexGrid1.ToolTipText = "Position:" & MyColName & MyRowName
End Sub