Graphical User Interface Design for Windows Forms
Penn Foster 037095 – Guaranteed 100% score
Click Below Link To Download Assignment!
http://www.askassignment.com/product/penn-foster-037095-groceryapp-project-multiple-form-application
OVERVIEW
You now have the basic GUI skill to make the GroceryApp project a multiple-form application. This project will assess your understanding of using controls, menus, and handling multiple forms.
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 or you won’t receive full credit.
YOUR PROJECT
In the graded project for Lesson 3, you added grocery classes to the GroceryApp project. In this project, you’ll add a form to allow users to add grocery items to the shopping basket. The form will also use menus. You’ll also set the startup form and manage the login form window. The output of this project will be used in the next graded project.
INSTRUCTIONS
1. In Visual Studio, load the GroceryApp project that you completed in Lesson 3.
2. Add a new form to the project named GroceryItemForm.
3. Add controls to GroceryItemForm in the following layout:
Label controls, two TextBox controls, a NumericUpDown control, a ComboBox control, a GroupBox component, a RichTextBox control and a Button control.
4. Modify the design-time properties of the form and its controls using the following table:
GroceryItemForm Text Grocery Item
Label1 (Name) lblScanNumber
Label1 Text &Scan
Label2 (Name) lblBrandName
Label2 Text &Name:
Label3 (Name) lblPrice
Label3 Text &Price:
Label4 (Name) lblAisle
Label4 Text A&isle:
GroupBox1 (Name) grpDescription
GroupBox1 Text &Description
TextBox1 (Name) txtScanNumber
TextBox1 ReadOnly True
TextBox1 TabStop False
TextBox2 (Name) txtBrandName
TextBox2 TabIndex 0
NumericUpDown1 (Name) numPrice
NumericUpDown1 DecimalPlaces 2
NumericUpDown1 TabIndex 1
ComboBox1 (Name) lstAisle
ComboBox1 Items Bakery
CannedGood Drinks Deli DryGoods FrozenFood Produce
ComboBox1 TabIndex 2
RichTextBox1 (Name) txtDescription
RichTextBox1 TabIndex 3
Button1 (Name) btnAddToBasket
Button1 Text A&dd to Basket
Button1 TabIndex 4
5. Add the option E&xit to the Application menu.
6. Add the options A&dd and &View in the Basket menu.
7. Save your work on GroceryItemForm.vb.
8. Open the design view of LoginForm.vb.
9. Select LoginForm. Set the AcceptButton and CancelButton properties to the buttons btnLogin and btnCancel, respectively.
10. Select txtPassword. Set the PasswordChar property to *.
11. Set the TabIndex property for the txtUsername and
txtPassword controls to 0 and 1, respectively.
12. Save these changes on LoginForm.vb.
13.Open the design view of GroceryItemForm.vb.
14.In the form’s Load event, display the login form modally.
15.In the Click event of the btnAddToBasket button, create a GroceryItem object using the values from the controls and add it to the basket variable. Remember the basket variable is the GroceryBasket collection.
a.Make sure all controls except txtScanNumber con- tain a value.
b.Set the value of the txtScanNumber control using the following code:
txtScanNumber.Text = _ txtBrandName.Text.Substring(0, 3) & “1019”
c.Instantiate the GroceryItem class, using the control values.
d.Use the following expression to set the Aisle property
[Enum].Parse(GetType(Aisle), lstAisle.Text)
This expression converts the text into an Aisle enumeration.
e.Add the GroceryItem object to the basket variable.
f.Make sure to clear the content of all controls.
16.In the Click event of the Exit menu item, end the appli- cation.
17.Have the btnAddToBasket_Click method handle the
Click event of AddToolStripMenuItem as well.
18.In the Click event of the View menu item, display all of the items in the basket variable in an informational mes- sage box. You need only display the Aisle, ScanNumber, and BrandName properties. See Assignment 9 for help.
19.Set GroceryItemForm as the startup form.
20.Save and run the application. Verify that all controls and menus work correctly. You must provide a valid user- name and password to access the main form.
21.Make sure to test your work fully before submitting your project.
Note: If you close the Login form, you don’t need to perform the login process. This is by design, so that you can test the application without logging on.
SUBMISSION GUIDELINES
To submit your project, you must provide the following three files:
LoginForm.Designer.vb
GroceryItemForm.vb
GroceryItemForm.Designer.vb
To find these files, you should go to directory where you saved the GroceryApp project. To determine this path, click on GroceryApp in the Solution Explorer panel. Copy the value for the Project Folder property in the Properties panel. In Windows Explorer, paste the file path and press the Enter key. Copy the LoginForm.Designer.vb, GroceryItemForm.vb, and GroceryItemForm.Designer.vb files to your desktop or any other temporary location.
Use the following procedure to submit your project online:
1.Log in to view your student homepage and go to the My Courses page.
2.Click on Take Exam next to the lesson you’re working on.
3.Attach your files as follows:
a.Click on the Browse box.
b.Locate the file you wish to attach.
c.Double-click on the file.
d.Click Upload File.
e.If you have more than one file to attach, repeat steps a–d for each file.
4.Enter your e-mail address in the box provided. (Note: Your e-mail address is required for online submissions.)
5.If you wish to include comments about this project to your instructor, enter your comments in the Message box.
6.Click on Submit Files.
GRADING CRITERIA
Remember to follow directions and follow good OOP princi- ples as described in the study guide.
Your project will be graded using the following rubric:
The GroceryItemForm contains
the required controls and layout. 40 points
The GroceryItemForm contains
the required application logic. 20 points
The LoginForm has been
modified correctly. 10 points
All source code files are included. 30 points
Penn Foster 037095 – Guaranteed 100% score
Click Below Link To Download Assignment!
http://www.askassignment.com/product/penn-foster-037095-groceryapp-project-multiple-form-application
OVERVIEW
You now have the basic GUI skill to make the GroceryApp project a multiple-form application. This project will assess your understanding of using controls, menus, and handling multiple forms.
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 or you won’t receive full credit.
YOUR PROJECT
In the graded project for Lesson 3, you added grocery classes to the GroceryApp project. In this project, you’ll add a form to allow users to add grocery items to the shopping basket. The form will also use menus. You’ll also set the startup form and manage the login form window. The output of this project will be used in the next graded project.
INSTRUCTIONS
1. In Visual Studio, load the GroceryApp project that you completed in Lesson 3.
2. Add a new form to the project named GroceryItemForm.
3. Add controls to GroceryItemForm in the following layout:
Label controls, two TextBox controls, a NumericUpDown control, a ComboBox control, a GroupBox component, a RichTextBox control and a Button control.
4. Modify the design-time properties of the form and its controls using the following table:
GroceryItemForm Text Grocery Item
Label1 (Name) lblScanNumber
Label1 Text &Scan
Label2 (Name) lblBrandName
Label2 Text &Name:
Label3 (Name) lblPrice
Label3 Text &Price:
Label4 (Name) lblAisle
Label4 Text A&isle:
GroupBox1 (Name) grpDescription
GroupBox1 Text &Description
TextBox1 (Name) txtScanNumber
TextBox1 ReadOnly True
TextBox1 TabStop False
TextBox2 (Name) txtBrandName
TextBox2 TabIndex 0
NumericUpDown1 (Name) numPrice
NumericUpDown1 DecimalPlaces 2
NumericUpDown1 TabIndex 1
ComboBox1 (Name) lstAisle
ComboBox1 Items Bakery
CannedGood Drinks Deli DryGoods FrozenFood Produce
ComboBox1 TabIndex 2
RichTextBox1 (Name) txtDescription
RichTextBox1 TabIndex 3
Button1 (Name) btnAddToBasket
Button1 Text A&dd to Basket
Button1 TabIndex 4
5. Add the option E&xit to the Application menu.
6. Add the options A&dd and &View in the Basket menu.
7. Save your work on GroceryItemForm.vb.
8. Open the design view of LoginForm.vb.
9. Select LoginForm. Set the AcceptButton and CancelButton properties to the buttons btnLogin and btnCancel, respectively.
10. Select txtPassword. Set the PasswordChar property to *.
11. Set the TabIndex property for the txtUsername and
txtPassword controls to 0 and 1, respectively.
12. Save these changes on LoginForm.vb.
13.Open the design view of GroceryItemForm.vb.
14.In the form’s Load event, display the login form modally.
15.In the Click event of the btnAddToBasket button, create a GroceryItem object using the values from the controls and add it to the basket variable. Remember the basket variable is the GroceryBasket collection.
a.Make sure all controls except txtScanNumber con- tain a value.
b.Set the value of the txtScanNumber control using the following code:
txtScanNumber.Text = _ txtBrandName.Text.Substring(0, 3) & “1019”
c.Instantiate the GroceryItem class, using the control values.
d.Use the following expression to set the Aisle property
[Enum].Parse(GetType(Aisle), lstAisle.Text)
This expression converts the text into an Aisle enumeration.
e.Add the GroceryItem object to the basket variable.
f.Make sure to clear the content of all controls.
16.In the Click event of the Exit menu item, end the appli- cation.
17.Have the btnAddToBasket_Click method handle the
Click event of AddToolStripMenuItem as well.
18.In the Click event of the View menu item, display all of the items in the basket variable in an informational mes- sage box. You need only display the Aisle, ScanNumber, and BrandName properties. See Assignment 9 for help.
19.Set GroceryItemForm as the startup form.
20.Save and run the application. Verify that all controls and menus work correctly. You must provide a valid user- name and password to access the main form.
21.Make sure to test your work fully before submitting your project.
Note: If you close the Login form, you don’t need to perform the login process. This is by design, so that you can test the application without logging on.
SUBMISSION GUIDELINES
To submit your project, you must provide the following three files:
LoginForm.Designer.vb
GroceryItemForm.vb
GroceryItemForm.Designer.vb
To find these files, you should go to directory where you saved the GroceryApp project. To determine this path, click on GroceryApp in the Solution Explorer panel. Copy the value for the Project Folder property in the Properties panel. In Windows Explorer, paste the file path and press the Enter key. Copy the LoginForm.Designer.vb, GroceryItemForm.vb, and GroceryItemForm.Designer.vb files to your desktop or any other temporary location.
Use the following procedure to submit your project online:
1.Log in to view your student homepage and go to the My Courses page.
2.Click on Take Exam next to the lesson you’re working on.
3.Attach your files as follows:
a.Click on the Browse box.
b.Locate the file you wish to attach.
c.Double-click on the file.
d.Click Upload File.
e.If you have more than one file to attach, repeat steps a–d for each file.
4.Enter your e-mail address in the box provided. (Note: Your e-mail address is required for online submissions.)
5.If you wish to include comments about this project to your instructor, enter your comments in the Message box.
6.Click on Submit Files.
GRADING CRITERIA
Remember to follow directions and follow good OOP princi- ples as described in the study guide.
Your project will be graded using the following rubric:
The GroceryItemForm contains
the required controls and layout. 40 points
The GroceryItemForm contains
the required application logic. 20 points
The LoginForm has been
modified correctly. 10 points
All source code files are included. 30 points
Preview Solution:
Grocery Item Basket |
Basket Viewer |
Price: $50
Special Price: $40
Email: syedjahangirb@gmail.com for downloading assignment
Download Link:http://www.askassignment.com/product/penn-foster-037095-groceryapp-project-multiple-form-application
Download Link:http://www.askassignment.com/product/penn-foster-037095-groceryapp-project-multiple-form-application
File in Solution:
Preview.jpg (45K) (Preview)
BasketAddition.jpg (39K) (Preview)
BasketView.jpg (11K) (Preview)
GroceryApp.zip (190K)
[
GroceryApp/BasketAddition.jpg
GroceryApp/BasketView.jpg
GroceryApp/GroceryApp/bin/Debug/GroceryApp.exe
GroceryApp/GroceryApp/bin/Debug/GroceryApp.pdb
GroceryApp/GroceryApp/bin/Debug/GroceryApp.vshost.exe
GroceryApp/GroceryApp/bin/Debug/GroceryApp.vshost.exe.manifest
GroceryApp/GroceryApp/bin/Debug/GroceryApp.xml
GroceryApp/GroceryApp/GroceryApp.vbproj
GroceryApp/GroceryApp/GroceryApp.vbproj.user
GroceryApp/GroceryApp/GroceryBasket.vb
GroceryApp/GroceryApp/GroceryItem.vb
GroceryApp/GroceryApp/GroceryItemForm..Designer.vb
GroceryApp/GroceryApp/GroceryItemForm..resx
GroceryApp/GroceryApp/GroceryItemForm..vb
GroceryApp/GroceryApp/LoginException.vb
GroceryApp/GroceryApp/LoginForm.Designer.vb
GroceryApp/GroceryApp/LoginForm.resx
GroceryApp/GroceryApp/LoginForm.vb
GroceryApp/GroceryApp/Main.vb
GroceryApp/GroceryApp/My Project/Application.Designer.vb
GroceryApp/GroceryApp/My Project/Application.myapp
GroceryApp/GroceryApp/My Project/AssemblyInfo.vb
GroceryApp/GroceryApp/My Project/Resources.Designer.vb
GroceryApp/GroceryApp/My Project/Resources.resx
GroceryApp/GroceryApp/My Project/Settings.Designer.vb
GroceryApp/GroceryApp/My Project/Settings.settings
GroceryApp/GroceryApp/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache
GroceryApp/GroceryApp/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache
GroceryApp/GroceryApp/obj/x86/Debug/GenerateResource.read.1.tlog
GroceryApp/GroceryApp/obj/x86/Debug/GenerateResource.write.1.tlog
GroceryApp/GroceryApp/obj/x86/Debug/GroceryApp.exe
GroceryApp/GroceryApp/obj/x86/Debug/GroceryApp.GroceryItemForm.resources
GroceryApp/GroceryApp/obj/x86/Debug/GroceryApp.LoginForm.resources
GroceryApp/GroceryApp/obj/x86/Debug/GroceryApp.pdb
GroceryApp/GroceryApp/obj/x86/Debug/GroceryApp.Resources.resources
GroceryApp/GroceryApp/obj/x86/Debug/GroceryApp.vbproj.FileListAbsolute.txt
GroceryApp/GroceryApp/obj/x86/Debug/GroceryApp.vbproj.GenerateResource.Cache
GroceryApp/GroceryApp/obj/x86/Debug/GroceryApp.xml
GroceryApp/GroceryApp/obj/x86/Debug/TempPE/My Project.Resources.Designer.vb.dll
GroceryApp/GroceryApp/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache
GroceryApp/GroceryApp/obj/x86/Release/GroceryApp.exe
GroceryApp/GroceryApp/obj/x86/Release/GroceryApp.GroceryItemForm.resources
GroceryApp/GroceryApp/obj/x86/Release/GroceryApp.LoginForm.resources
GroceryApp/GroceryApp/obj/x86/Release/GroceryApp.pdb
GroceryApp/GroceryApp/obj/x86/Release/GroceryApp.Resources.resources
GroceryApp/GroceryApp/obj/x86/Release/GroceryApp.vbproj.FileListAbsolute.txt
GroceryApp/GroceryApp/obj/x86/Release/GroceryApp.vbproj.GenerateResource.Cache
GroceryApp/GroceryApp/obj/x86/Release/GroceryApp.xml
GroceryApp/GroceryApp/obj/x86/Release/TempPE/My Project.Resources.Designer.vb.dll
GroceryApp/GroceryApp.sln
GroceryApp/GroceryApp.suo
GroceryApp/Preview.jpg
]
No comments:
Post a Comment