ID: 230
Viewed: 3383
Added: May 28, 2002
Version:
Snippet uploaded by: snippet
Written By: unknown
Demo: Sorry, no demo
Thank you for your vote. Please wait...
It appears you already voted for this snippet
It appears your vote value was empty
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
<!---Declaration--->
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
Highlight All
<!---Code--->
Private Sub Command1_Click()
MsgBox SendMessage(Text1.hwnd, EM_GETLINECOUNT, 0&, 0&)
End Sub;
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.