Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
500MB 27GB Web Hosting - $9.95/Month
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
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-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated