Flexgrid tooltips

Posted on 2000-03-22
Last Modified: 2013-12-25
How do you add tooltips to a flexgrid cell?
Question by:d_jedi
LVL 14

Expert Comment

ID: 2646269
You can do this.... In the Click Event of the flexgrid:

Private Sub MSFlexGrid1_Click()
    With MSFlexGrid1
        .ToolTipText = "This is row " + CStr(.Row) + " Col " + CStr(.Col)
    End With
End Sub


Author Comment

ID: 2650637
Thanx for responding.. but that's not quite what I wanted..

I wanted when a the tip to appear when the mouse passes over the cell (as with other tooltips..)
LVL 14

Expert Comment

ID: 2651143
Well, I think the only other way would be to create a window hook, but that is going to be *alot* of work...

See the following MS article:

HOWTO: Hook Into a Window's Messages Using AddressOf 

Hope this helps!

LVL 12

Accepted Solution

jgv earned 20 total points
ID: 2667505
Private Sub MSFlexGrid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)

With MSFlexGrid1
    .ToolTipText = "Mouse is over Column: " & .MouseCol & "  Row: " & .MouseRow
End With

End Sub

Expert Comment

ID: 7266591
'This will give u the exact value under the cells

Private Sub MSHFlexGrid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
With MSHFlexGrid1
.ToolTipText = .TextMatrix(.MouseRow, .MouseCol)
End With
End Sub

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel object stays open 19 76
vb script Microsoft Word tables portion of based on bookmark, count and add rows 1 57
MS Date Picker 64 bit 32 bit issue 12 53
Advice in Xamarin 21 79
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question