196k views
2 votes
Create a Windows Forms application. Use the following names for the project and solution, respectively: Moonbucks Project and Moonbucks Solution. Save the application in the VB2017\Chap02 folder. Change the appropriate properties of the form. Also, be sure to verify the name of the startup form. Code the Exit button. (You do not need to code the button that calculates and displays the two amounts.) Save the solution and then start the application. Test the access keys, tab order, and Exit button and then close the solution.

Planning Chart for the Moonbucks application Purpose: Calculate and display the increase and projected sales amounts. How?

User Burnsys
by
7.9k points

1 Answer

0 votes

Final answer:

To create a Windows Forms application named 'Moonbucks Project' in Visual Studio 2017, you need to follow a sequence of steps including naming, setting properties, coding the exit button, and testing. You code the Exit button with 'Me.Close()' to close the form. Save the project in the VB2017\Chap02 folder, test all functionalities, and ensure the Exit button works as expected.

Step-by-step explanation:

To create a Windows Forms application in Visual Basic (using Visual Studio 2017), you need to follow several steps. First, open Visual Studio and create a new project by selecting 'Windows Forms App (.NET Framework)' from the new project template dialog. Name the project 'Moonbucks Project' and the solution 'Moonbucks Solution' as per the requirements. Then, save this project in the VB2017\Chap02 directory on your system.

Next, in the properties window, you should set the properties of the form according to the assignment requirements. This might include changing the text property to set the title of the form, setting the startup position, and checking the 'Startup form' in the application's properties to ensure it's pointing to the correct form.

To code the Exit button, double-click the button on your form to generate an event handler for the button's click event. Inside this event handler, you will want to add the code 'Me.Close()' to close the form when the exit button is clicked.

Finally, after coding the Exit button, save the solution, run the application, and test the access keys, tab order, and functionality of the Exit button to ensure they all work correctly. Once you confirm everything is working, close the solution.

User Mahesh Sharma
by
7.8k points