Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

How to run method in separate thread

, 24 Mar 2011
Rate this:
Please Sign up or sign in to vote.
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.

License

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

About the Author

J a a n s
Software Developer (Senior)
India India
No Biography provided

Comments and Discussions

 
GeneralDelegateobject.BeginInvoke("Hi, This is Parameter", Program.... PinmemberMember 456702427-Mar-11 19:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140718.1 | Last Updated 25 Mar 2011
Article Copyright 2011 by J a a n s
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid