'End AddHandler' must be the first statement on a line

An End AddHandler statement follows a colon (:) statement separator. End AddHandler must be the only statement on its source line.

Error ID: BC31118

To correct this error

  • Separate the multiple statements onto different lines.

See Also

Tasks

How to: Break and Combine Statements in Code

Reference

AddHandler Statement

Event Statement