Okay so this is my second time posting here so sorry if this question has already been answered, I couldnt find anything on it.
So basically I have a button, which I want to start a loop when its pressed, I then want the loop to keep repeating until the same button is pressed again, I've been trying to figure this out for a while and I cant seem to get this to work.
So Inside the loop, the program is changing the image inside several picture boxes, I want the program to continue changing the images in a loop until the same button is clicked
Thanks for your help :)
If you need any more information just let me know
EDIT:
private void btnDance_Click(object sender, EventArgs e)
{
bool clicked;
if (clicked == true)
{
timer1.Stop();
}
else
{
clicked = true;
timer1.Start();
}
}