-
2 questions in one.
1. I need to move text from 4 fields into a multiline text box and then move them back into the fields after the user has modified the text without moving any soft or hard returns back into the 4 fields.
ALSO
2. I need to be able to limit the amount of lines in the multiline text box to 4 lines only so that I can move the text back into the 4 fields without losing any user input.
I have tried several ways of doing this but can't seem to find an efficient way of controling the input from the user. The most difficult of which is how to predict whether the next character that is typed will make the text wrap beyond my line limit, then, if it does go beyond the limit, how to remove the character that was entered.
Any help would be appreciated. If you know of a Text Box Control that might do such a thing, please let me know.
-
You can check the text box for the number of Carriage return(dunno how to spell) and line feeds combination depending on your OS, this can help you determine the number of lines the user has typed
Using the CrLf as delimiter, you can separate the line as and when you want.
-
will this work?
Can you use four text boxes set close together? If so you could set the maxlength property to what ever you want.