I have a windows forms application on which I need to use a for loop having a large number of Remote Calls around 2000 - 3000 calls,
and while executing the for loop
private voidForm_Load(object sender, EventArgs e) { MethodInvoker mk = delegate { //your job }; mk.BeginInvoke(callbackfunction, null); } private void callbackfunction(IAsyncResult res) { // it will be called when your job finishes. }
use MethodInvoker is the easiest way.