Limiting the amount of Text within a Text Box

L

LMW

I am building a template which has an area for the user to type in whatever
information is needed (a form, narrative, whatever). However, I have a
limited amount of space on the 1st page of the form. I have tried using a
cell with exact measurements and I have tried using a text box (but you can't
set permissions on linked text boxes and this "open space" is the only place
a user is allowed to type in information. Does anyone know of a way to
prevent the typist from continuing to type once the border of the cell or
text box has been reached?

Both the cell and text box allow the typist to keep typing although you can
no longer see the information being typed in.
 
M

Mr. Arnold

LMW said:
I am building a template which has an area for the user to type in whatever
information is needed (a form, narrative, whatever). However, I have a
limited amount of space on the 1st page of the form. I have tried using a
cell with exact measurements and I have tried using a text box (but you
can't
set permissions on linked text boxes and this "open space" is the only
place
a user is allowed to type in information. Does anyone know of a way to
prevent the typist from continuing to type once the border of the cell or
text box has been reached?

Both the cell and text box allow the typist to keep typing although you
can
no longer see the information being typed in.

Doesn't the Length property of the Textbox set the length of how many
characters can be entered?
There is also the Keypress event that you could write a routine to check the
current length of the Textbox and cancel the KeyPress if the length equals
the max length you have set.

You could punish them by using a multi-line Textbox with vertical and
horizontal scroll bars, let them type until the cows come home and you
truncate the text to the length you want. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top