Search Results

by wamund
Wed Dec 23, 2020 2:51 pm
Forum: C#.NET
Topic: Do event handlers have to be static?
Replies: 1
Views: 22094

Do event handlers have to be static?

In the code examples provided the event handlers are declared as static.
Since I am quite new to C# this proves to be an issue for me, having to reference non-static methods or variables from the event handler method.

So, do event handlers have to be static?

/Mikael