C# adds a button double-click event, and then deleting the code will prompt an error.
If the name of your form is Form2, click the plus sign of Form2 in the Solution Project Manager, and then you can see Form2. Designer.cs, and then you can find the wrong place in it.