download the application please visit www.mrbool.com/player
Title: Windows Forms-Lesson 8-Showing three ways of calling methods asynchronously
In this video we will show three ways of calling methods asynchronously. You
can call BeginInvoke and EndInvoke in several ways: 1- Calling BeginInvoke,
doing work, and then calling EndInvoke on the same thread. 2- Calling
BeginInvoke, polling IAsynchResult until the asynchronous operation is
completed, and then calling EndInvoke.
3- Calling BeginInvoke, specifying a callback method to be executed when the
asynchronous operation has
completed, and calling EndInvoke on a seperate thread..
of the development of example: Good coding standard and
simplified design to illustrate the key points.
Used: Windows Forms and .NET 3.5
Form, delegate, Thread, DateTime, CancellationPending, RunWorkerAsync,
CancelAsync, IAsyncResult, Sleep, BeginInvoke, EndInvoke, AsyncState.