|
-
Apr 28th, 2011, 05:53 PM
#4
Re: multiline textbox question
 Originally Posted by wengwashere
You need to know how many characters can be filled on your textbox per line, then you can count the number of characters and on the Keypress event of the Textbox and then assign it to the String if it reaches your maximum count or if you pressed the enter key.
Of course you need to handle the pressing of backspace, delete, etc.
That's not really practical. First up, the number of characters will vary unless you're using a fixed-width font. Also, if the user makes an edit, everything below that edit will change.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|