I have a piece of code:
innerchannel.Closing += Function(sender, e)
RaiseEvent Closing(sender, e)
End Function
There’s an issue with
innerchannel.Closing
in which VisualStudio is telling me:
Public Event Closing(sender As Object, e As System.EventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
How do I repair this to work accordingly?
I assume you want to add a handler to your Closing-event:
If you want to raise a custom event, for example in an
UserControl: