Penn Foster 037847 – Grocery app, Login Screen with screenshots – Perfect Solution – Instant Delivery
Overview
Now you’re ready to work on your first Visual Studio solution. This project will assess your understanding of Visual Basic and the Visual Studio environment. Make sure that you follow all directions completely and verify your results before submitting the project. Remember to include all required components in your solution. When you’ve completed this program and it’s working properly, submit it for grading.
For your first project, you’ll create a login form using a Windows Forms Application proj¬ect in Visual Studio. The login form will prompt the user for a username and password. This form is a high-fidelity prototype that will provide a default message if the user clicks the OK or Cancel buttons.
Note: The output of this project will be used in the graded project for Lesson 2.
Summary
You should conform the general look of this project to the screen capture provided in the project description. The layout should be the same as shown in the illustration. Naturally, the placement of each item doesn’t have to be exact; however, they should be placed in the same manner as shown. Also, the original background color and font styles aren’t required to be the same; therefore, feel free to use your imagination.
Instructions
1. In Visual Studio, create a new Windows Forms Application project named GroceryApp. Review the Try It Out exercises in your textbook if you need a reminder of how to perform this step.
2. Rename Form1.vb to LoginForm.vb. You can use either the Properties panel or right-click Form.vb in the Solution Explorer panel and choose the Rename option.© PENN FOSTER, INC. 2017 PAGE 38 VISUAL BASIC PROGRAMMER Graded Project
3. Add two Label, two TextBox, and two Button controls to LoginForm.vb.
4. Modify the design-time properties of the form and its controls using the information in Table 1.
5. Move the controls to resemble the layout in Figure 9.
6. In the Click event handler for the btnLogin control, add the following statement:
MessageBox.Show (“Thank you for logging in, “ & txtUsername.Text, “Logged In.”)
7. In the Click event handler for the btnCancel control, add the statement Application.Exit() to close out of the application.
8. Save your work and debug the application.
9. Make sure the application works as intended.
Table 1
LoginForm Text Please Login
LoginForm Size 365,135
Label1 (Name) lblUsername
Label1 Text Username:
Label2 (Name) lblPassword
Label2 Text Password:
TextBox1 (Name) txtUsername
TextBox2 (Name) txtPassword
Button1 (Name) btnLogin
Button1 Text Login
Button2 (Name) btnCancel
Button2 Text Cancel
Grading Criteria
The following rubric will be used to grade your project:
Exemplary (4) Proficient (3) Fair (2) Poor (1) Not Evident (0)
All controls have correct properties set. Most controls have correct properties set. Some controls have correct properties set. Few controls have correct properties set. Controls don’t have correct properties set
The Login but-ton displays the correct mes¬sage box. N/A N/A N/A The Login button doesn’t display the cor-rect message box
The Cancel button closes out of the application. N/A N/A N/A The Cancel button doesn’t close out of the application
Both source code files are included. One source code file is included. N/A N/A The source code files aren’t included
Submitting Your Project
To submit your project, you must provide the following two files: LoginForm.vb and LoginForm.Designer.vb. To find these files, go to the directory where you saved the GroceryApp project. To open the project directory, right-click GroceryApp in the Solution Explorer panel and choose the Open Folder in File Explorer option in the context menu (Figure 10). Copy both the LoginForm.vb and LoginForm.Designer.vb files to your desktop or any other temporary location for uploading.
Each project is individually graded by your instructor and therefore takes up to a few weeks to grade.
To submit your graded project, follow these steps:
1. Go to http://www.pennfoster.edu.
2. Log in to your student portal.
3. Click Take Exam next to the lesson you’re working on.
4. Follow the instructions provided to complete your exam.
Be sure to keep a backup copy of any files you submit to the school!© PENN FOSTER, INC. 2017 PAGE 40 VISUAL BASIC P ROGRAMMER Graded Project
FIGURE 10—You’ll find your files in the project directory.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.