You're getting caught out by the automatic code in the Form1.designer.cs file. To solve this you need to change every occurance of button1_Click to button1_Click_1. The best way to do this is to right click on button1_Click and select "Refactor > Rename"