Link to home
Start Free TrialLog in
Avatar of i64X
i64X

asked on

Counting Lines in RTF Boxes

Is there any API to count lines in RTF boxes?  I need to know whether an RTF box has twenty lines of text, in it, and I need that returned as either true or false. Thanks
ASKER CERTIFIED SOLUTION
Avatar of halsch
halsch
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mtoft
mtoft

Or you could do it like this:

Dim lLines as long
lLines = SendMessage(RichTextBox1.hWnd, EM_GETLINECOUNT, 0, 0)

/Mtoft