by SYED ZUBAIR ALI (7 Submissions)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 4th August 2009
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Count Number of Lines in a program where u can calculate total number of lines in multiline text box..
Private Const EM_GETLINECOUNT = 186
Public Function GetLineCount(ByRef txt As TextBox) As Long
GetLineCount = SendMessageAsLong(Text1.hWnd, EM_GETLINECOUNT, 0, 0)
End Function
'How can I use this function:
Sub Main()
Debug.Print GetLineCount(Text1)
'or
'label.caption=getlinecount(text1)
End Sub
No comments have been posted about Count Number of Lines in a program where u can calculate total number of lines in multiline text bo. Why not be the first to post a comment about Count Number of Lines in a program where u can calculate total number of lines in multiline text bo.