|
-
Mar 19th, 2001, 09:16 AM
#1
Thread Starter
Member
I am using RichTextBox and I am looking for API that will get line number and will scroll the text to the line position.
Thanx
VB6 SP4
-
Mar 24th, 2001, 07:56 PM
#2
Addicted Member
Try This
Private Const EM_GETLINECOUNT = &HBA
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Sub Command1_Click()
Label1.Caption = SendMessage(Text1.hwnd, EM_GETLINECOUNT, 2&, 0)
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|