private void button1_Click(object sender, EventArgs e) { int number2; if (int.TryParse(textBox1.Text, out number2)) { textBox2.Text = ("tryparse method succeed"); } else { textBox2.Text=("value entered is not numeric"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)