Handles clause requires a WithEvents variable defined in the containing type or one of its base types

前端 未结 8 1993
旧巷少年郎
旧巷少年郎 2021-01-04 03:15

I get the error

Handles clause requires a WithEvents variable defined in the containing type or one of its base types.

in the following co

8条回答
  •  囚心锁ツ
    2021-01-04 03:30

    When converting a legacy Web Sites Project to a Web Application Project type, when following these directions, after converting the application, it created a bunch of .aspx.designer.vb files for me but didn't include them in the project. So I clicked on the project root in solution explorer, pressed the * key to expand everything, then multiselected all of the designer.vb files and right-clicked then said 'include in project'. Then it was able to see the types and the compiler lived happily ever after.

    THE END

提交回复
热议问题