There's some other code generated that refers to the button1_Click method -- look around for it, it's probably folded up somewhere. I can guarantee that simply adding that method is unsufficient to put an event handler in place.
Edit:
Right click the method when it's auto-generated, and click "Find All References" -- that'll show you where the method is getting used.
Last edited by Rashakil Fol; Mar 9th, 2009 at 9:45 pm.
Reputation Points: 1135
Solved Threads: 171
Super Senior Demiposter
Offline 2,478 posts
since Jun 2005