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

Get button pressed or something like that...

$
0
0
Hi, I programming a calculator, but I want to be able to enter more than 2 numbers...

Ex: |1|2|3| Here's a label: Ex: 1 + 5 + 8 + 2 =
|4|5|6|
|7|8|9
|0|

It's a bit weird to look at this but... What I want, is when you pressed button1 (number 1), it creates a variable named numberA (for exemple)...

When I'll press " = ", it will do the operation...

Name:  calcu.png
Views: 38
Size:  8.7 KB

All button works, but the " = " is program only for addition... And for now, it can't addition 2 same numbers... (Ex: 1 + 2 + 6 + 1 = 9, it must = 10)

Any help pls?
Attached Images
 

Viewing all articles
Browse latest Browse all 27554

Trending Articles



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