SendMessage: Determine the Number of Lines in a Text Box
This code fills a label with the number of lines of text in a textbox as the user enters text.
SendMessage: Determine the Current Line in a Text Box
This code fills a label with the current line number that the user is on.
SendMessage: Find Text Box Document Size via API
There may be times you might want a precise count of the size of the text in a textbox. While the FileLen() function can provide this information for a newly opened file, this code fills a label with the dynamic size of the document that updates as the user changes the text.
SendMessage: Programmatically Scroll a Text Box Vertically
How to use the SendMessage API to programmatically scroll a textbox vertically by any number of lines. The code also contains an interesting speed comparison demonstrating the overhead involved when a control's property is referenced during a complex operation, over the recommend method of using temporary variables for this purpose.
SendMessage: Text Selection Methods via API
Non-typical routines using APIs for selecting text.
SendMessage: Text Range Selection via API
API method to select text based on its line number in a textbox.