Question: 1 . Start a new project named AreaAndPerimeter. 2 . Add labels, text boxes, and buttons to the default form and set the properties of

1. Start a new project named AreaAndPerimeter.
2. Add labels, text boxes, and buttons to the default form and set the properties of the form and its controls so they appear as shown similar to above. When the user presses the Enter key, the Click event of the Calculate button should fire. When the user presses the Esc key, the Click event of the Exit button should fire.
3. Make sure you also add a "Clear Fields" Button.
4. Create an event handler for the Click event of the Calculate button. This event handler should get the values the user enters for the length and width, calculate and display the area (length \( x \) width) and perimeter ((\(2 x \) length)\(+(2 x \) width)), and move the focus to the Length text box. It should provide for decimal entries, but you can assume that the user will enter valid decimal values.
5. Create an event handler for the Click event of the Exit button that closes the form.
6. Test the app to be sure it works correctly.
1 . Start a new project named AreaAndPerimeter. 2

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

Students Have Also Explored These Related Programming Questions!