I have always had problem with understanding the implementation of event handling. So, this post is going to serve me as a step-by-step guide to handle events in C#.
There are basically two steps in involved in this process. First, to implement events and second, to handle them.
A. Implement events
Step 1 : Create an EventArgs class
The first step is to create an EventArgs subclass as follows:
public class StartEventArgs: EventArgs
// Provide one or more constructors, as well as fields and
// accessors for the arguments.