I am writing a program but can't get the last 0 to add to it or dollar sign to show for the currency. How do I write it and where do I put it in the coding? Does it go under calculate or does it go under your DIM Statements. Here is my DIM statements that I have:
Private mdblsbtotal As Double
Private mdblBaseRate As Double
Private mdblStandard As Double = 84.5 (when I add the 0 after 5 it disappears)
Private mdblDeluxe As Double = 104.5
Private mdblSuite As Double = 154.5
Dim mdatbeginning, mdatlast As Date
Dim mdblelapsed As Double
These are my boxes that need to have dollar signs and decimal points. Actually it is giving me the decimal points but won't add the 0 to the end. Ex. 84.5 instead of 84.50.
txtAnswerDays.Text = 0
txtBaseAmount.Text = 0
txtSubtotalAmount.Text = 0
txtExtraGuestAmount.Text = 0
txtRollawayAmount.Text = 0
txtTotalAmount.Text = 0
One more thing that I am having a problem on is that when I add subtotal + rollaway + extraguest it adds the amount to the end of the total not adding into the total. For example 84.50 is subtotal, 10.00 for extra guest and 5.00 for rollaway. Instead of adding 84.50 + 10.00 + 5.00 = 99.50 it does this: 84.5105. What am I doing wrong?
Here is my statement:
txtTotalAmount.Text = txtSubtotalAmount.Text + txtExtraGuestAmount.Text + txtRollawayAmount.Text
And if I have an Exit button how would that be written?