0

I've tried google and this site but cant seem to find anywhere to start?
I'm trying to make a character limit one then automaticaly go to the next open text box.

3
Contributors
2
Replies
4
Views
7 Years
Discussion Span
Last Post by RunTimeError
1

Every textbox has a MaxLength property you could test for . Default it is set to 32767 chars.

0

I've tried google and this site but cant seem to find anywhere to start?
I'm trying to make a character limit one then automaticaly go to the next open text box.

Text boxes have a .Length API call which will tell you how many characters are currently in the text box. It looks something like this:

if(textBox1.Text.Length >= 50)
{
	MessageBox.Show("Invalid input. Value must be less than 50 characters");
}
else
{
      //Acceptable input length
}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.