for (int i = 1; i < 3; i++)
{
int randomSpeed = RandomNumber(2, 10);
"apa" + i.Left -= randomSpeed;
}
Look at the "apa" + i.Left -= randomSpeed; this is wrong.
I have PictureBoxes that have names apa1, apa2 and apa3.
I would like to set the Left of the names apa+ i
How can i set the Left to the random speed in the loop for each of them?
As you have a finite number of controls, its probably easier to just do: