title: VB Uncheck all checked checkboxes in forms
body: <p>This is my form1, it contains lots of checkboxes and a button, to show the form2:</p>
  
  <pre><code>Public Class Form1
      Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
          Form2.show()
      End Sub
  End Class
  </code></pre>
  
  <p>And here is my form2, also it contains lot of checkboxes and a button, for unchecking all the checkboxes on form1 and on form2:</p>
  
  <pre><code>Public Class Form2
      Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
          'code for clearing all the checkboxes, I don't know how to do it
      End Sub
  End Class
  </code></pre>
  
  <p>My question is: how can I make a code in Form2.Button1 for unchecking all the checkboxes in the Form1, Form2 and even other forms??
  <hr>
  I tried this code, that unchecks only the checkboxes in the form where is it placed:</p>
  
  <pre><code>Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
      For Each cc As Control In Me.Controls
          If TypeOf cc Is CheckBox Then
              DirectCast(cc, CheckBox).Checked = False
          End If
      Next
  End Sub
  </code></pre>
  
  <p>Maybe I can do that by editing this code.. I don't know<br />
  Thank you all in advance</p>