In this exercise, you learn about a text boxs Clear method, which can be used to remove

Question:

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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: