Home All Groups Group Topic Archive Search About

Limit text box to a specific number of characters ?

Author
8 Jan 2006 4:20 PM
Rob
On a form... How do you Limit a text box to a specific number of characters
?

Author
8 Jan 2006 4:52 PM
Ken Tucker [MVP]
Hi,

        Set the textboxes maxlength property to the number of characters you
will allow.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformstextboxbaseclassmaxlengthtopic.asp

Ken
----------------
Show quoteHide quote
"Rob" <rwch***@comcast.net> wrote in message
news:t-6dneWUlsopplzenZ2dnUVZ_vmdnZ2d@comcast.com...
> On a form... How do you Limit a text box to a specific number of
> characters ?
>
Author
8 Jan 2006 4:57 PM
VBTricks.de.vu Webmaster
Salut,

use the maxlength-property of the textbox.


Stefan

--
___________________________________www.VBTricks.de.vu
the free resource for Visual Basic, Gambas and Pascal
components, tips & complete projects

www:  http://www.VBTricks.de.vu
mail: vbtricks <at> gmx <dot> net
_____________________________________________________