Enhanced TextBox Limits
How to limit lines in a TextBox control. Shows how to limit a TextBox to a specific number of characters per line and a specific number of lines.
About this post
Posted: 2017-09-05
By: BlackBeltVB
Viewed: 430 times
Categories
Attachments
TEXTLIMT.ZIP
Posted: 9/4/2017 5:12:53 AM
Size: 1,876 bytes
Requirements
This code originally appeared on BlackBeltVB.com, and has been republished here with the permission of Matt Hart.
Special Instructions
Uses the following API function and messages:
- SendMessage
- EM_GETLINE
- EM_GETLINECOUNT
- EM_LINEFROMCHAR
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.