Udostępnij za pośrednictwem


'AddressOf' operand must be the name of a method (without parentheses)

The AddressOf operator creates a procedure delegate instance that references a specific procedure. The syntax is as follows.

AddressOfprocedurename

You inserted parentheses around the argument following AddressOf, where none are needed.

Error ID: BC30577

To correct this error

  1. Remove the parentheses around the argument following AddressOf.

  2. Make sure the argument is a method name.

See Also

Concepts

Delegates and the AddressOf Operator

Reference

AddressOf Operator