You need to have an event declared in your class like this:
public event EventHandler ExampleEvent;
and then you need to associate a method delegate to that event, turning that method/delegate into the event handler.
this.ExampleEvent+= this.ExampleEventHandlerClassMethod;
or a static method
this.ExampleEvent += ExampleClass.ExampleStaticEventHandler;
Your example looks very brief, but it looks like that class either has an event called VisibleChanged
or your declaring a method called Visible Changed
and then trying to assign that method to handle itself, which doesn't make sense.
If you already have the event, then you should try changing your method name that you want to use to handle that event to something like VisibleChangedHandler
and then do this.VisibleChanged += this.VisibleChangedHandler;
This looks relevant:
Cannot Assign because it is a method group C#?
And this:
https://learn.microsoft.com/en-us/dotnet/standard/events/