Added: May 28, 2002
Snippet uploaded by: snippet
Written By: unknown
Demo: Sorry, no demo
This will count the total number of lines in a text box not dependent on vbCrLf's (hard returns)
Highlight all by clicking in box
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 Const EM_GETLINECOUNT = &HBA
Private Sub Command1_Click()
MsgBox SendMessage(Text1.hwnd, EM_GETLINECOUNT, 0&, 0&)
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.