65.9K
CodeProject is changing. Read more.
Home

How to run method in separate thread

starIconstarIconstarIconstarIconemptyStarIcon

4.00/5 (2 votes)

Mar 25, 2011

CPOL
viewsIcon

7849

Much easier to go for async invoke.new MethodInvoker(MyMethod).BeginInvoke(null, null);We can use the suitable overload in case of parameters/callback methods.Note: MethodInvoker is available inside the System.Windows.Forms name space. You can create your own delegates also.

Much easier to go for async invoke.
new MethodInvoker(MyMethod).BeginInvoke(null, null);
We can use the suitable overload in case of parameters/callback methods. Note: MethodInvoker is available inside the System.Windows.Forms name space. You can create your own delegates also.