string text = textBox.Text; int length = text.Length; if (length > 5 || length > 10) { // write your logic here }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)