Hello friends,
How can I show message if given string is not integer using c#.
Hello friends,
How can I show message if given string is not integer using c#.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shweta LodhaPosted Jan 18, 2016, 12:55 AM
Hi Shantoh Singh,
if( ! uint.TryParse( textBox1.Text, out value )){MessageBox.Show( "Invalid value", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error );}
Nishant MittalPosted Jan 18, 2016, 12:58 AM