G
Guest
Hi!
I've implemented many times an asynchronous call of a method with a call
backfunction successfully.
But to implement this with VB.NET is not so successfully. I can implement
all events ProcessingEvent, CompletedEvent, etc.
It works fine and copies all files in the background ...
Bit to make it perfekt I want to implement a callback function wich will be
used to do the final work, show the finished message and so on.
With C# I can do that with a BeginInvoke() on the event object. Looks like
callback = new AsyncCallback(CopyCompletion);
DoCopy.BeginInvoke(this, args, callback, args);
But it is not possible to use BeginInvoke in that way in C#.
How can I do that?
Thanks for your help
Gerda
I've implemented many times an asynchronous call of a method with a call
backfunction successfully.
But to implement this with VB.NET is not so successfully. I can implement
all events ProcessingEvent, CompletedEvent, etc.
It works fine and copies all files in the background ...
Bit to make it perfekt I want to implement a callback function wich will be
used to do the final work, show the finished message and so on.
With C# I can do that with a BeginInvoke() on the event object. Looks like
callback = new AsyncCallback(CopyCompletion);
DoCopy.BeginInvoke(this, args, callback, args);
But it is not possible to use BeginInvoke in that way in C#.
How can I do that?
Thanks for your help
Gerda