'Sub' or 'Function' expected after 'Delegate'

A Delegate statement does not specify a Sub or Function procedure. The Sub or Function keyword must immediately follow the Delegate keyword.

Error ID: BC30278

To correct this error

  1. Add the Sub or Function keyword immediately after Delegate.

  2. Specify a procedure name, argument list, and return type as appropriate.

See Also

Concepts

Procedures in Visual Basic

Reference

Delegate Statement