Delen via


'AddHandler' and 'RemoveHandler' method parameters cannot be declared 'ByRef'

The parameters of the AddHandler and RemoveHandler methods cannot be declared with the ByRef modifier.

Error ID: BC31134

To correct this error

  • Remove the ByRef keyword from the parameter.

See Also

Reference

Event Statement

AddHandler

RemoveHandler

ByRef

Other Resources

Events in Visual Basic