I have two buttons to reduce or increase the number. Also, I have a label which is has value zero. How can I increase or decrease without giving zero value to the Label in C#?
Code:
int sayi = int.Parse(lbltext1.Text);
sayi = sayi - 1;
lbltext1.Text = sayi.ToString();
Try something like this…(not tested)