1. Total
You can get total from TotalCost variabel since you already count it
TotalCost += OrderMenu(1).ItemCost
But you put the declaration in every buttons so you can't use it properly.
You need to put TotalCost in Global Declaration and remove all TotalCost declaration in every buttons.
Private OrderMenu(6) As MenuItems
Dim Dim TotalCost As Decimal
... You can access it in ButtonDone event : MsgBox(TotalCost) 2. Clear TextBoxBill
Private Sub ButtonNewOrder_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonNewOrder.Click
'Clears the TexBoxBill and start new order
TextBoxBill.Text = String.Empty
End Sub
3. Hamburger Problem
Your code not complete like others. You missing '+' sign.
Just change this line :
...
TextBoxBill.Text += OrderMenu(1).ItemName.ToString & vbTab & OrderMenu(1).ItemCost.ToString & vbCrLf Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444