Open the VB2015Chap03Debug Solution-Lesson ADebug Solution (Debug Solution.sln) file. The application is supposed to display the number
Question:
Open the VB2015\Chap03\Debug Solution-Lesson A\Debug Solution (Debug Solution.sln) file. The application is supposed to display the number of times the Count button is pressed, but it is not working correctly.
a. Start the application. Click the Count button. The message indicates that you have pressed the Count button once, which is correct. Click the Count button several more times. The message still displays the number 1. Click the Exit button.
b. Open the Code Editor window and study the code. What are two ways to correct the code? Which way is the preferred way? Modify the code using the preferred way. Save the solution and then start the application. Click the Count button several times. Each time you click the Count button, the message should change to indicate the number of times the button was pressed. Click the Exit button.
Step by Step Answer: