title: C# UserControl BeginInvoke Problem
body: <p>I have got a C# user control, which has got it's own background worker thread. This worker thread is started in the constructor of the control and stopped when the control is disposed.</p>
  
  <p>The thread periodically calls the BeginInvoke-Method with a delegate, but sometimes the exception <strong>"Invoke or BeginInvoke cannot be called on a control until the window handle has been created."</strong> occoures.</p>
  
  <p>Now I ask you, how can I check whether calling BeginInvoke is possible from my worker thread to do no invoking as long as the control isn't completely created?</p>
  
  <p>This problem only occoures when compiling a release. Not in debug mode.</p>
  
  <p>with best regards</p>