Get the Number of Lines of Text in an Edit Control

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Intermediate
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
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.

Declarations:

Code: