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.

Re: Limiting the amount of Text within a Text Box by Mr

Mr
Mon Apr 28 17:39:30 CDT 2008


"LMW" <LMW@discussions.microsoft.com> wrote in message
news:7D85FA71-4CED-499D-B3C8-462736CAF7C9@microsoft.com...
>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. :)



Re: Limiting the amount of Text within a Text Box by clintonG

clintonG
Mon Apr 28 19:55:09 CDT 2008

You haven't been able to find a well written JavaScript validator yet?



"LMW" <LMW@discussions.microsoft.com> wrote in message
news:7D85FA71-4CED-499D-B3C8-462736CAF7C9@microsoft.com...
>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.