private void checkBox[i]_CheckedChanged(object sender, EventArgs e)
//Initialize a temporary integer for the loop count. You loop 5 times. Thereafter you stop looping. it gets triggered by pressing the button
for(int i = 0 , i < 5 , i++)
for = Doing something for... int Integer = 0 = Creates an integer that holds the value 0 Integer != 10 = Will do the for aslong as Integer is NOT equal to 10 Integer++ = Increase the Integers value with one each time it finish the for (loop)
while = Do something while the value is not true/false Value = the value it will use to check.
Seems you need to studdy a bit more on that :|
Was just an example on HOW he could use a while loop.
For all I care he can use a bool as the while value...
It's all about helping the user to understand what the code does.
And not just give them a code and say: Do that or put that there.
Then he would maybe have to ask us again for this in 4 weeks or so...
It's more about the user-focuse rather then the expertise of the answer. (That helps as well)
But having a noob telling you how to do it instead of a geek.
Some MIGHT not understand a geeky way but the nooby way is more on his level.