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
I got this error randomly 268 times in a solution that I hadn't changed. I closed and reopened the file and it seemed to fix it...
I had this happen when I created a command button. When I let VB.net create the event I was immediately greeted with that error. What I did to fix it was deleted the object in the designer (a command button in my case), the code tied to it, saving my .sln & recreating the object. Problem solved.