so my question to You is how to make loop when checkbox is checked I tried this code
private void checkBox1_CheckedChanged(object sender, EventArgs e) {