I have following code lines:
=============== =============== =
if (txtMethod.Text != "D") || (txtMethod.Text != "F"))
{
txtMethod.Clear ();
txtMethod.Focus ();
}
else
{
grpboxDirect.Vi sible = true;
txtCalculatePer cent.Focus();
}
=============== ===============
txtMethod is a TextBox that need to have values only D or F. The first
line is giving problem. Please correct.
=============== =============== =
if (txtMethod.Text != "D") || (txtMethod.Text != "F"))
{
txtMethod.Clear ();
txtMethod.Focus ();
}
else
{
grpboxDirect.Vi sible = true;
txtCalculatePer cent.Focus();
}
=============== ===============
txtMethod is a TextBox that need to have values only D or F. The first
line is giving problem. Please correct.
Comment