July 27th, 2011, 08:12 PM
Nothing will calculate. Does that mean nothing is connected? I have no idea how to connect them. I thought my first question in the thread would solve that problem.
July 27th, 2011, 01:26 PM
That is an excellent point! I see your thought process here. I did try it, though, and no success. It's like no matter which code I try, when I click Calculate nothing happens.
July 27th, 2011, 11:29 AM
No, it's not working. :( So I think my other code has something to do with it.
I'll post it. I hope it's not completely off. Lol. I'll be a little embarrassed.
public partial class Form1...
July 27th, 2011, 11:16 AM
double SubAmt = BevPrice + AppPrice + MainPrice + DesPrice ;
lblSubAmt.Text = SubAmt.ToString();
double TaxAmt= SubAmt * 0.07;
lblTaxAmt.Text = TaxAmt.ToString();
July 27th, 2011, 11:09 AM
Thank you HanneS! I see exactly what you are saying about creating a new variable. I did that because when I typed SubAmt.Text = ....; , I always got an error message.
Error 1 Cannot implicitly...
July 27th, 2011, 10:41 AM
I am using a label to show the amounts. I have a label that says Subtotal and a label next to it that is named SubAmt. That is why I set SubAmt = BevPrice + AppPrice + MainPrice + DesPrice; . I...
July 27th, 2011, 09:46 AM
A restaurant wants an application that calculates a table's bill. The application should display all the menu items ( shown below) in four ComboBoxes. Each ComboBox should contain a...