Go to
Form
[
Design
], Click the button(
button1) -> right click -> Properties -> Click Events Tab on the top -> Find the
Click Event
and Double click it. Now it will go the associated event to the button in
Form1.cs File
(or)
Double Click the Button in the Form[Design], it will go to its event in
Form1.cs File
now replace the current button click
event signature
private void button1_Click()
to this
private void button1_Click(object sender, EventArgs e)