VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This snippet explaines the use of SendMessageA API of user32 library, to get number of lines in a t

Prashant Sharma  (4 Submissions)   String Manipulation   Visual Basic 4.0 (32-bit)   Unknown Difficulty   Mon 28th October 2002   Mon 8th February 2021

This snippet explaines the use of SendMessageA API of user32 library, to get number of lines in a textbox. The line count is obtained from the

API Declarations


'WebSite: http://www.prashantsharma.com
'EMail: [email protected]



'You can declare the API function and the constant value in the form itself
'as PRIVATE or in a module as PUBLIC

Private Declare Function SendMessageA Lib "user32" (ByVal hwnd As Long, _
ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

Private Const EM_GETLINECOUNT = &HBA


Rate This snippet explaines the use of SendMessageA API of user32 library, to get number of lines in a t (1(1 Vote))
This snippet explaines the use of SendMessageA API of user32 library, to get number of lines in a t.bas

This snippet explaines the use of SendMessageA API of user32 library, to get number of lines in a t Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters