Event declaration:
public event EventHandler<EventArgsT> EventName;
Event handler declaration:
public void HandlerName(object sender, EventArgsT args) { /* Handler logic */ }
Subscribing to the event:
Dynamically:
EventName += HandlerName;
Through the Designer:
private void Form1_Load(object sender, EventArgs e)
{
}
Invoking the method:
EventName(SenderObject, EventArguments);