Delegate.Invoke/BeginInvoke or Control.Invoke/BeginInvoke

Delegate.Invoke/BeginInvoke or Control.Invoke/BeginInvoke
  • Delegate.Invoke: Executes synchronously, on the same thread.
  • Delegate.BeginInvoke: Executes asynchronously, on a threadpool thread.
  • Control.Invoke: Executes on the UI thread, but calling thread waits for completion before continuing.
  • Control.BeginInvoke: Executes on the UI thread, and calling thread doesn't wait for completion.
This answer did help solve my issue which has been banging my head for hours. 

Popular posts from this blog

npm refusing to install as a dependency of itself

How to call javascript functions from VB.NET and using WebBrowser Control