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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Shweta LodhaRank #31 · 39.8K reputationPosted Jan 17, 2016, 7:55 PM EST
Hi Shantoh Singh,
if( ! uint.TryParse( textBox1.Text, out value )){MessageBox.Show( "Invalid value", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error );}
Nishant MittalRank #692 · 3.5K reputationPosted Jan 17, 2016, 7:58 PM EST