Dear Friends,
I want to compare two values of textboxs please, check my code
Code
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;
}I got error.
Error CS0029 Cannot implicitly convert type 'int' to 'bool'


Tapan PatelRank #614 · 3.9K reputationPosted Aug 7, 2017, 5:36 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Aug 6, 2017, 10:27 PM EDT
Zeb Muhammad61 reputationPosted Aug 6, 2017, 10:32 PM EDT
Midhun TpRank #388 · 6.5K reputationPosted Aug 6, 2017, 10:35 PM EDT
Gokhul VarmanRank #1,505 · 1.1K reputationPosted Aug 7, 2017, 6:18 AM EDT
Anil JhaRank #1,988 · 733 reputationPosted Aug 7, 2017, 1:46 AM EDT