You will see, as the title says, I am doing a calculator. My concern is how to send a label the values that are being added in a sum of several numbers, example: 4 + 5 + 10 + 8 + 7 and so, that I accumulate the values that go putting in the label
You will see, as the title says, I am doing a calculator. My concern is how to send a label the values that are being added in a sum of several numbers, example: 4 + 5 + 10 + 8 + 7 and so, that I accumulate the values that go putting in the label
You could do a function that receives the Parameter or text that you send example
public void textAdd(string texto)
{
milabel.text = milabel.text + " " + texto;
}
and use it as follows:
textAdd("5");
Where 5 is the letter that you added, if your cell has nothing you will only see 5