waffle

waffle

  • NA
  • 48
  • 0

if statement

Jan 30 2007 12:13 PM
VS2005 i have this code.. i don't know what's wrong! pls help.. if (checkBoxDiscounted.Enabled == false) { DialogResult ans = MessageBox.Show("Bill: " + totAmt.Text); } else { DialogResult ans = MessageBox.Show("Bill: " + disPrice.Text); } though i have the if statement, the result is still the same. always the discounted price is displayed.

Answers (2)