bool res =textBox1.Text.Contains("your Value"); // res will contain true if values is present
//assuming a textbox named textbox1 int anInteger; anInteger = Convert.ToInt32(textBox1.Text);//get the text as an integer //or anInteger = int.Parse(textBox1.Text); //try to parse the value as an integer
var match = textBox1.Text.IndexOfAny("1234567890".ToCharArray()) != -1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)