Question: 1. In this exercise, you modify an existing form by replacing its Exit button with a timer. a. Open the Williams Solution (Williams Solution.sln) file

1. In this exercise, you modify an existing form by replacing its Exit button with a timer.

a. Open the Williams Solution (Williams Solution.sln) file contained in the VB2012\Chap01\Williams Solution folder. If necessary, open the designer window.

b. Delete the Exit button from the form and then delete the button’s code from the Code Editor window.

c. Return to the designer window. Add a timer control to the form. Change the timer’s name to tmrExit. Set the timer’s Enabled property to True. The timer should end the application after eight seconds have elapsed; set the appropriate property. Enter the Me.Close() instruction in the appropriate event procedure in the Code Editor window.

d. Save the solution and then start the application. When eight seconds have elapsed, the application ends.

e. Set the form’s FormBorderStyle property to FixedSingle. Also, remove the elements

(icon and buttons) and text from the form’s title bar.

f. Save the solution and then start the application. Close the Code Editor window and then close the solution.

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