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

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

3.47 Rating (163 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 14 VisualStudioVersion 140220131 MinimumVisualStudioVersion 100402191 ProjectF184B08FC81C45F6A57F5ABD9991F28F Bakery Project Bak... View full answer

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 Programming with Microsoft Visual Basic 2015 Questions!