Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

vb.net (MS Visual Studio 2017) In this exercise, you create an application that keeps track of cookie sales. Create a Windows Forms application. Use the

vb.net (MS Visual Studio 2017) In this exercise, you create an application that keeps track of cookie sales. Create a Windows Forms application. Use the following names for the project and solution, respectively: Sales Project and Sales Solution. Save the application in the VB2017\Chap11 folder. Figure 11-61 shows the Sales table contained in the VB2017\Chap11\Databases\ Cookies.mdf file. The table contains the numbers of boxes of cookies sold in each of three weeks. The Week field is an auto-numbered field. Open the Data Sources window and click Add New Data Source to start the Data Source Configuration Wizard. Connect the Cookies.mdf file to the application. Include the entire Sales table in the dataset.

Set the Cookies.mdf files Copy to Output Directory property to Copy if newer.

Create a data form for the user to enter the sales information. (The Week fields data should appear in a label control.) Lock the controls on the form and then set the tab order.

Rename the text boxes as follows: txtChocolate, txtPeanut, and txtPecan.

Each text box should accept only numbers and the Backspace key. Create an eventhandling Sub procedure that will handle the three event procedures.

Enter an appropriate Try...Catch statement in the SalesBindingNavigatorSaveItem_Click procedure.

Save the solution and then start the application.

Change the Peanut Butter sales for Week 1 to 125. Then, enter the following record for Week 4: 100, 100, and 100. Save the changes. Stop the application and then start it again to verify that the changes you made were saved.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago