Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27203

Mathematic problem....

$
0
0
I am current working on a project and i am stuck with a mathematic part.
For Ex. there is 2 choices, bananas for 5 coins and apples for 2 coins.

Under both choices there will be a textbox, there you type how many bananas you want, and how many apples.

At the bottom there's a button, if i press that, and typed in 4 at bananas and 3 at apples it should calculate the result as 26 i believe.
Here is a picture of what i meant. here
i can't figure out what the code should be for textbox1 and 2.
If button1 press bla bla......
if textbox1.text "0", it can't be that code, and i can't use such as. if textbox1.text >=0

and this is not the only thing, i will add like 60 things, i will create a monster calculator for a game, with damage and defence on one object, and there will be like 60 of them, i need help with this banana and apple thing, you may add me on skype if you feel to help me even more. thank you.
any ideas how to do?
skype: muspru

i copied this from my yahoo question, hard to understand, ask me again.

Viewing all articles
Browse latest Browse all 27203

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>