Int32 val11 = Convert.ToInt32(textBox4.Text);Int32 val22 = Convert.ToInt32(textBox10.Text);if(val11 >> val22){MessageBox.Show("Please, check Maximum Limit of Quantity.Quantity should be less tha fix Limit", "Limit", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Warning);textBox15.Focus();textBox4.ForeColor = Color.Red;}else{textBox4.ForeColor = Color.Green;}
Dear Friends,
I want to compare two values of textboxs please, check my code
I got error.
Error CS0029 Cannot implicitly convert type 'int' to 'bool'

Gokhul VarmanPosted Aug 7, 2017, 10:18 AM
Tapan PatelPosted Aug 7, 2017, 9:36 AM
Anil JhaPosted Aug 7, 2017, 5:46 AM
Midhun TpPosted Aug 7, 2017, 2:35 AM
Zeb MuhammadPosted Aug 7, 2017, 2:32 AM
Midhun TpPosted Aug 7, 2017, 2:27 AM