If you attach a screen-shot of the form, we will at least know what data you are collecting.
this is exactly what i want ot do
Write a Visual Basic program that allows users to enter the price of an item before tax (net value) and displays the price of the item after tax (gross value). Use the constant to define the VAT, which is 17.5, and use a variable to store the calculated gross price.
You will need to make an event when your "calculate" button is clicked which will take the text value form textbox1 and multiply it by 0.175. Take that value and add it from the original value. Display this value in textbox2 or label2 or whatever you have created.
Whoopee. Time for my daily fix of criticising Jordan.
First of all - good luck multiplying a text value by 0.175. You need to convert it to a float first (float.TryParse() for the boolean test, float.Parse() for the actual data).
Secondly - why bother adding the value onto the original value? Just multiply by 1.175 instead and bang, you have your value.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks