-
1 Attachment(s)
A Basic Calculator
Hi this is a basic Calculator I been working on for doing very simple maths.
Supports Addition, Subtraction, Multiplication and division.
Also check for division by zero.
http://i46.tinypic.com/2mdju6g.png
Hope you like it.
Comments suggestions welcome.
-
Re: A Basic Calculator
thanks but that is too much of code man can i have your msn ? we need to start a group on skype,irc , msn , yahoo to start some real discussion on vb i'm still a beginner in developing world i'm not yet a programmer
-
Re: A Basic Calculator
I really like the layout of this calculator. I think that it's easier to use than a standard basic calculator, to many buttons and you can't see the first number you used after you've choosen the operator. This is a clever and unique way to do basic operations. Another great codebank post!
-David
-
Re: A Basic Calculator
why dont you do this.
Dim Value As Double = val( ' your value... & "")
Dim Value2 As Double = val( ' your value. & "")
Dim Value3 as double = 0
select case Method
case 0
value3 = value + value2
case 1
value3 = value * value2
case 2
value3 = value - value2
case 3
value3 = value / value2
end select
textbox1.text = value3
-
Re: A Basic Calculator
I'm possibly being a bit picky here but I would put the Choose Operator frame in between the two number text boxes and label the radio buttons "Plus", "Minus", "Multiplied by" and "Divided by", because subtraction and division are not commutative operations.
-
Re: A Basic Calculator
It is a pretty cool calculator.