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
 
 
 
 
 
 
TitleGet the index of the first line visible in a RichTextBox
KeywordsRichTextBox, scroll, line
CategoriesControls
 
Send the control the EM_GETFIRSTVISIBLELINE message. SendMessgae returns the index of the line.
 
Private Sub Command1_Click()
    Label1.Caption = Format$(SendMessage(RichTextBox1.hwnd, _
        EM_GETFIRSTVISIBLELINE, 0, 0))
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated