Question: In the minesweeper application we dynamically created buttons on the form instead of manually placing each button on form. How did we determine which of

In the minesweeper application we dynamically created buttons on the form instead of manually placing each button on form. How did we determine which of the buttons had been clicked?Select one
A. We saved the row and column number in the button's Tag property and then parsed that value in the click event.
B. We calculated the X and Y coordinate of the click event and compared it to the position of each button to find the correct match.
C. We dynamically created click handler methods, one for each button.
D. We determined that it was impossible to know which of the buttons had been clicked so we used Try / Catch to avoid errors.

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 Databases Questions!