title: Access variable of child form
body: <p>Using VB.Net</p>
  
  <p>I have about 60 Child forms</p>
  
  <p>Each have a variable with same name.</p>
  
  <p>In Main form I want to set the value of the variable of the active child.</p>
  
  <p>One way of doing that is like</p>
  
  <pre><code>Select Case Me.ActiveMdiChild.Name
    Case "formName"
      frmformName.Variable=0
  </code></pre>
  
  <p>I donot want to do that as it involves writing many cases and I may miss some.</p>
  
  <p>Is there some other way of doing it .</p>
  
  <p>I tried</p>
  
  <pre><code>Dim O as Object = Me.ActiveMdiChil
  
  O.VariableName= 0
  </code></pre>
  
  <p>and its various variants but its not working</p>