There are different methods for reacting on events in C#.
The most common ones are demonstrated via s simple use case. In the following samples a timer is created and when the tick event occurs a message box shall be displayed.
The approaches to handle events can be transferred to any other event in dotNET.
The usual way by registering a function:
...