title: Invoke or BeginInvoke cannot be called on a control until the window handle has been created
body: <p>I am executing following code:</p>
  
  <pre><code>grid.Invoke(New MethodInvoker(AddressOf RefreshDataSource))
  </code></pre>
  
  <p>getting <code>InvalidOperationException</code> exception.</p>
  
  <p>Message: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.</p>
  
  <p>Stack Trace:</p>
  
  <pre><code>   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
     at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
     at System.Windows.Forms.Control.Invoke(Delegate method)
     at DataForm.BindData() in D:\Proj\DataForm.vb:line 380
     at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]&amp; outArgs)
     at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]&amp; outArgs)
     at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
  </code></pre>