Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleDisplay a different tip for each cell in a FlexGrid control
KeywordsFlexGrid, cell, tip
CategoriesControls
 
In the control's MouseMove event handler, use the MouseRow and MouseCol methods to see which cell is under the mouse. Make the new tooltip and, if it is different from the current tip, display it.
 
Private Sub MSFlexGrid1_MouseMove(Button As Integer, Shift _
    As Integer, x As Single, y As Single)
    new_txt = "(" & _
        Format$(MSFlexGrid1.MouseRow) & _
        ", " & _
        Format$(MSFlexGrid1.MouseCol) & _
        ")"
    If txt <> new_txt Then
        MSFlexGrid1.ToolTipText = new_txt
        txt = new_txt
    End If
End Sub
 
Formatted by Neil Crosby
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated