Simple math operation C# -


i have button, textbox , 1 label. want create when user click on button number in label must + number textbox. , can unlimited time.

example first insert 100 label1.text = 100, second insert 300 label.text = 400, third enter 700 label.text = 1100 ...

how without define new variable every click?

you need not have new variable instead of append existing textbox value label

label1.text = convert.tostring(int.parse(label1.text) + int.parse(textbox1.text)); 

happy coding


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -