Click here to Skip to main content
15,887,746 members
Articles / Programming Languages / C#

How to run method in separate thread

Rate me:
Please Sign up or sign in to vote.
4.00/5 (2 votes)
24 Mar 2011CPOL 7.5K   2  
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.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) NA
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions