R
RP
I have following code lines:
===============================
if (txtMethod.Text != "D") || (txtMethod.Text != "F"))
{
txtMethod.Clear();
txtMethod.Focus();
}
else
{
grpboxDirect.Visible = true;
txtCalculatePercent.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.Visible = true;
txtCalculatePercent.Focus();
}
==============================
txtMethod is a TextBox that need to have values only D or F. The first
line is giving problem. Please correct.
