I want to add two nos. by using only one text box and 2 command boxes 1st for + and another for =.
Add two numbers using only one text box
Collapse
X
-
Dear Nilesh
U do one thing. Type a number in the text box, use one variable, say number1. When u click command '+' the number in textbox must be stored in number1 and textbox is cleared. Now type another number. When u press command button '=' make
Number1 = Number1 + val(Text1.Text)
Text1.Text= Number1
Now the sum of both the numbers appears in the textbox.
If any other problem do ask. If solved kindly acknowledge.
Comment