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
 
 
 
 
 
TitleScroll tooltips
Keywordsscroll, tooltips
CategoriesControls
 
In the MouseMove event handler of the control of interest, call function ScrollToolTipText. That function wraps the tooltip text around. When the user hovers the mouse over the control, the system repeatedly sends the MouseMove event, making the tooltip scroll.
 
Private Sub Text1_MouseMove(Button As Integer, Shift As _
    Integer, X As Single, Y As Single)
    Call ScrollToolTipText(Text1)
End Sub

Private Function ScrollToolTipText(obj As Object)
Dim strToolTip As String

    strToolTip = obj.ToolTipText
    If Not 0 = Len(strToolTip) Then
        strToolTip = (Right$(strToolTip, Len(strToolTip) - _
            1)) & Left$(strToolTip, 1)
        obj.ToolTipText = strToolTip
    End If
End Function
 
Thanks to Renuka Prasad.
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated