Sometimes I double-click a control, thinking I had attached code to it, just to find I had not (or I clicked the wrong control). I remove the auto inserted function, but next time I compile it complains because the designer still has the eventhandler defined but no function now so I have to go remove it manually.
Not a big deal of course, but just curious if it had some nifty shortcut way to fix that when it happens...?
Auto remove accidental eventhandler?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Jan 1, 2012, 1:13 PM EST
However, if for some reason, it doesn't work then you have to remove it manually including removing the appropriate lines from the InitializeComponent() method.
Sam HobbsRank #108 · 20.5K reputationPosted Jan 1, 2012, 1:54 PM EST