S
Sid Price
I have a compiler warning I do not understand how to fix. I am trying to
remove an event handler and get the following message:
Warning 1 The 'AddressOf' expression has no effect in this context because
the method argument to 'AddressOf' requires a relaxed conversion to the
delegate type of the event. Assign the 'AddressOf' expression to a variable,
and use the variable to add or remove the method as the handler.
There appears to be no problem with the signature of the method and it was
added using AddHandler. Any suggestions would be much appreciated,
Sid.
remove an event handler and get the following message:
Warning 1 The 'AddressOf' expression has no effect in this context because
the method argument to 'AddressOf' requires a relaxed conversion to the
delegate type of the event. Assign the 'AddressOf' expression to a variable,
and use the variable to add or remove the method as the handler.
There appears to be no problem with the signature of the method and it was
added using AddHandler. Any suggestions would be much appreciated,
Sid.