When you double-click a control in the Designer , Visual Studio not only creates an empty event handler, but it also writes some code that you don’t see, elsewhere in the project that is necessary for the event handler to properly function.
Select one of the following: