Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Limiting the amount of Text within a Text Box

Reply
 
Old 04-28-2008   #1 (permalink)
LMW


 
 

Limiting the amount of Text within a Text Box

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.

My System SpecsSystem Spec
Old 04-28-2008   #2 (permalink)
Mr. Arnold


 
 

Re: Limiting the amount of Text within a Text Box


"LMW" <LMW@xxxxxx> wrote in message
news:7D85FA71-4CED-499D-B3C8-462736CAF7C9@xxxxxx
Quote:

>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.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Concatenate text string and text in variable with no space between PowerShell
Concatenate text string and text in variable with no space between VB Script
MVP's, text to speech!!, Can I dictate in other text input program Vista General
Howto: Add lines of text from a specific point in a text file.. VB Script
How do I read a text file and sort text by fixed positions? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46