Get the Number of Lines of Text in an Edit Control
Category:Forms and Controls
Author:Intelligent Solutions Inc.
This method was written so it will work with a TextBox, a RichTextBox, or a custom control based on a text box that exposes the hWnd, text, and multiline properties.
Instructions: Copy the declarations and code below and paste directly into your VB project.