Home All Groups Group Topic Archive Search About
Author
22 Oct 2005 1:13 AM
Arpan
How do I validate a textbox to ensure that not more than 16 characters
are entered in it in the TextBox_Validate event?

Thanks,

Arpan

Author
22 Oct 2005 1:19 AM
Bob Butler
"Arpan" <arpan***@hotmail.com> wrote in message
news:1129943621.595475.319990@g49g2000cwa.googlegroups.com
> How do I validate a textbox to ensure that not more than 16 characters
> are entered in it in the TextBox_Validate event?

Forget Validate; set the .MaxLength property to 16

--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
22 Oct 2005 8:22 AM
Arpan
Thanks, Bob, for your suggestion. That's exactly what I did after going
through your suggestion.

Thanks once again,

Regards,

Arpan