title: Unchecking vb.net checkboxes
body: <p>I have a basic question about Vb.net.</p>
  
  <p>I have a form, say "Form1" on which a checkbox "CheckBox1" triggers the pop-up of another form (say "Form2"). Form2 has a "cancel" button (say "Button1") which closes Form2 and unchecks "CheckBox1" on Form1.</p>
  
  <p>The Form2 "Cancel" button code is : </p>
  
  <pre><code>    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click        
      Me.DialogResult = DialogResult.Cancel
      Form1.CheckBox1.CheckState = 0
      End Sub
  </code></pre>
  
  <p>It works, but I have a problem when trying to do the same with a third form ("Form3") triggered by another CheckBox1 on Form2, despite Form3 "Cancel" button is though coded the same way in Form3 :</p>
  
  <pre><code>    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click        
      Me.DialogResult = DialogResult.Cancel
      Form2.CheckBox1.CheckState = 0
      End Sub
  </code></pre>
  
  <p>When I display MsgBox(Form2.CheckBox1.CheckState) in Form3 code, it's always "0", despite it's "1" when I display MsgBox(CheckBox1.CheckState) in Form2.</p>
  
  <p>Sorry for this noob question, but I can't see any explanation.
  Thanks in advance if anyone can help me.</p>