Hello!
What I want is that, for each time that : 1,2,3,4 loop it will ad a number before, like its counting but it stops at 4. so: 1,2,3,4,11,12,13,14,21,22,23,24,31,32,33,34,41,42,43,44,111,112,113,114,121,122,123,124,131,132,133, 134,141,142,143,144,211........
just like counting but with 4 numbers instead of 9.
And i want it to work like this, for each time that i press the button i want it to show a new number.
String[] text = { "1", "2", "3", "4" };
int count = 0;
private void button1_Click(object sender, EventArgs e)
{
if (count == text.Length)
{
count = 0;
}
label1.Text = text[(count % text.Length)];
count++;
}
Thank you!