i want to check if textbox1.text > textbox2.text so messagebox show (Calculate); else{ <pre lang="C#">messagebox show (try Again);</pre> }
int value1 ,value2; bool isValid1 = int.TryParse(textbox1.Text, out value1); bool isValid2 = int.TryParse(textbox2.Text, out value2); if (isValid1 && isValid2) { if (value1 > value2) { // your code } } else { // invalid entry in the textbox }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)