if (txtyear2.Text >= txtyear1.Text)
if (Int16.Parse(txtyear2.Text) >= Int16.Parse(txtyear1.Text)) { }
Int16.TryParse
Convert.ToInt16
if (Convert.ToInt32(txtyear2.Text) >= Convert.ToInt32(txtyear1.Text)) { }
if (Convert.ToInt32(txtyear2.Text) >= Convert.ToInt32(txtyear1.Text))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)