3. Create a Windows Forms application. Use the following names for the project and solution, respectively:...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3. Create a Windows Forms application. Use the following names for the project and solution, respectively: Customer Project and Customer Solution. Save the application in the VB2017\Chap09 folder. a. Create the interface shown in Figure 9-36. The File menu should have an Exit option. Change the IblMessage control's Visible property to False. b. Code the File menu's Exit option. c. The IblMessage control should disappear when a change is made to any of the text boxes. Create one event-handling Sub procedure to handle this task. d. Code each text box's Enter event procedure. e. The Save button should save the customer information to a sequential access file named customers.txt. Before saving the information, be sure to verify that all of the text boxes contain data: display an appropriate message if at least one text box is empty. Use the following format when saving the information: Save the customer's first name and last name, separated by a space character, on the same line. Then, on the next line, save the customer's address, followed by a comma, a space character, the city name, a comma, a space character, and the ZIP code. A blank line should separate each customer's information from the next customer's information. Figure 9-36 shows a sample of the sequential access file. £ Save the solution and then start and test the application. Stop the application and verify the contents of the customers.txt file. Customer information Eile First: Address: City: Information saved. biMessage Last: ZIP: Save 3. Create a Windows Forms application. Use the following names for the project and solution, respectively: Customer Project and Customer Solution. Save the application in the VB2017\Chap09 folder. a. Create the interface shown in Figure 9-36. The File menu should have an Exit option. Change the IblMessage control's Visible property to False. b. Code the File menu's Exit option. c. The IblMessage control should disappear when a change is made to any of the text boxes. Create one event-handling Sub procedure to handle this task. d. Code each text box's Enter event procedure. e. The Save button should save the customer information to a sequential access file named customers.txt. Before saving the information, be sure to verify that all of the text boxes contain data: display an appropriate message if at least one text box is empty. Use the following format when saving the information: Save the customer's first name and last name, separated by a space character, on the same line. Then, on the next line, save the customer's address, followed by a comma, a space character, the city name, a comma, a space character, and the ZIP code. A blank line should separate each customer's information from the next customer's information. Figure 9-36 shows a sample of the sequential access file. £ Save the solution and then start and test the application. Stop the application and verify the contents of the customers.txt file. Customer information Eile First: Address: City: Information saved. biMessage Last: ZIP: Save
Expert Answer:
Answer rating: 100% (QA)
Application Name CustomerProject IDE Visual Studio 2017 Language Used VB Interface Design MainFormvb Design Code snippet MainFormvb Importing namespac... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Create a Windows Forms application. Use the following names for the project and solution, respectively: Texting Project and Texting Solution. Save the application in the VB2017\Chap01 folder. a....
-
In this exercise, you will complete the Moonbucks application that you created in Exercise 2 in Chapter 2. a. Use Windows to copy the Moonbucks Solution folder from the VB2017\Chap02 folder to the...
-
develop a trial balance, complete with an appropriate three-line heading 1. Bought office equipment from Peckoff Equipment Co. on 30-day credit terms, $1,390. Purchase Invoice #2071. Ledger Entries:...
-
What is empire building in a managerial context?
-
Change the following from cylindrical to spherical coordinates, a. (1, /2, 1) b. (-2, /4, 2)
-
A firm that is planning to market a new cleaning product surveyed 1268 users of the leading competitors product. Each person rated the product as fair, good, or excellent. In addition, each person...
-
1. What forces for change are evident at the Oconomo plant? 2. What is the primary type of change neededchanging things or changing the people and culture? Can the Wisconsin plant be saved by...
-
Jason invests $4000 in PGS Bank and the amount he has in his account grows at a continuous annual rate of 1.5%. On the same day, Maria invests $6000 in Cash Bank and the amount of money in her...
-
The following table summarizes the operating results for Bene Petits first year of operations: Bene Petit First year operating data: Single (1 serving) Dual (2 servings) Family (4 servings) Total...
-
1. Which of the following is the clearest statement of the law of demand? a. As income rises, people buy more of all goods and services b. As price increases, the quantity of a good demanded will...
-
Consider the Boolean function F(W, X, Y, Z) = (0, 1, 2, 4, 6, 10, 12) which has the don't care conditions D(W, X, Y, Z) = (7, 13, 14, 15), the minimum sum-of-products (SOP) expression of Fis: Oa....
-
(Table: Long-Run Total Cost) Table: Long-Run Total Cost Quantity of Long-Run Total Cost Soybeans (bushels) 1 $50 2 80 3 90 4 120 5 200 6 300 Look at the table Long-Run Total Cost. This soybean grower...
-
The following data show the quarterly sales of the 6x* tents for three years at a sporting goods store. The store owner wants to forecast the quarterly sales for the next year. (a) Construct a time...
-
What is the Importance of Management Accounting for Decision-Making ? What is the conclusion of the importance of managerial accounting for business?
-
The balance sheet of Mega Company includes the following accounts: Accounts Receivable $25,000, Goodwill $7,000, Furniture $5,000, Cash $8,000, Supplies $11,000, Equipment $14,000, patents $3,000 and...
-
Part I: 1. Demand: D(P) = 100 - 2P The price of this good changes from P = 30 to P = 20. a. Calculate the Change in consumer surplus b. Calculate the Price Effect. c. Calculate the Quantity Effect....
-
Identify the Critical Infrastructure Physical Protection System Plan.
-
Which of the following declares a five-element one-dimensional array? a. Dim intSold(4) As Integer b. Dim intSold(5) As Integer = {4, 78, 65, 23, 2} c. Dim intSold() As Integer = {4, 78, 65, 23, 2}...
-
When entered in a procedure, which of the following statements will result in a syntax error? a. Me.Clse() b. Integer.TryPars(txtHours.Text, intHours) c. Dim decRate as Decimel d. All of the above.
-
Patti Garcia owns two cars, referred to as Car 1 and Car 2. She wants to drive one of the cars to her vacation destination, but shes not sure which one (if any) would cost her the least amount in...
-
In the Report of the National Commission on Fraudulent Financial Reporting there were four major recommendations that directly affect the role of the auditor. What were these recommendations?
-
What is the difference between business failure and audit failure?
-
The Securities Act of 1933 a. Extended the auditors liability for ordinary negligence under common law. b. Created foreseen and foreseeable parties. c. Reversed the decisions made in the Ultramares...
Study smarter with the SolutionInn App