Question: When you place a button named okButton on a Form in the IDE and double - click it , what method header is generated automatically?

When you place a button named okButton on a Form in the IDE and double-click it, what method header is generated automatically? (Note that if you are using Visual Studio 2019, each method name will start with an uppercase letter.)
a. public void okButton_Click (object sender, EventArgs e)
b. private void okButton_Click (object sender, EventArgs e)
c. static void okButton_Click (object sender, EventArgs e)
d. private int okButton_Click (object sender, EventArgs e)
When you place a button named okButton on a Form

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!