title: Check createHandler() before closing form() vb.net
body: <p>I'm currently running into a problem with a windows form application Closing.
  I have multiple forms inside a main form. If I close the main form while one of the forms inside the main form is stil initializing the application crashes on Close() because createHandler() still running.</p>
  
  <p>I already solved this inside one of the sub forms to add a boolean to Load() and check if the boolean is true. Example:</p>
  
  <pre><code>Private Sub frm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
     ini = True
     // loading components etc.
     ini = False
  End Sub
  
  Private Sub frm_KeyDown(sender As Object, e As KeyEventArgs) Handles MyBase.KeyDown
  If e.KeyData = Keys.Escape Then
        If (not ini)
            Close()
        End If
  End If
  </code></pre>
  
  <p>Now I have simulair issue in the main form. </p>
  
  <pre><code> Dim Childs = (From rec In Me.MdiChildren).ToList
   For Each Child In Childs
       Child.Close()
   Next
  </code></pre>
  
  <p>Is there anyway to verify if the childForm has been initialize before I close it?
  something like: Child.IsInit()</p>