Question: 11. In this exercise, you learn about a text boxs Clear method, which can be used to remove the contents of the text box during

11. In this exercise, you learn about a text box’s Clear method, which can be used to remove the contents of the text box during run time. Use Windows to make a copy of the Bakery Solution folder from the chapter. Rename the copy Discovery Bakery Solution. Open the Bakery Solution (Bakery Solution.sln) file contained in the Discovery Bakery Solution folder. Open the designer window. The Clear method’s syntax is textbox.Clear(). Use the Clear method in the btnClear_Click procedure to remove the contents of the txtDonuts and txtMuffins controls. (You cannot use the Clear method to remove the contents of label controls.) Save the solution and then start the application. Enter any date and sales amounts, and then click the Calculate button.

Click the Clear Screen button to verify that the Clear method worked correctly.

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