if statement
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.
wafflePosted Jan 31, 2007, 4:02 AM
Scott LyslePosted Jan 30, 2007, 10:26 PM
Seems like you'd want to see if it is checked:
if (checkBoxDiscounted.Checked == false...