title: C# multiple checkboxes
body: <p>I have 10 <code>checkboxes</code> on my form. They are named checkBox1, checkBox2, ..., checkBox10.
  At the moment my code looks like this:  </p>
  
  <pre><code> if(checkBox1.Checked)
     Call MyFunction(1);  
   if(checkBox2.Checked) 
     Call MyFunction(2);
  </code></pre>
  
  <p>etc<br>
  Because the argument I pass to my function is the same as the <code>checkbox</code> number, I would like to use a for loop, so that for each <code>checkbox_i</code>, I should call <code>MyFunction(i)</code></p>
  
  <p>Thanks,
  Nick</p>