Question: Create a Windows Forms application. Use the following names for the project and solution, respectively: Customer Project and Customer Solution. A. Create the interface shown

Create a Windows Forms application. Use the following names for the project and solution, respectively: Customer Project and Customer Solution.

A. Create the interface shown in Figure 9-36. The File menu should have an Exit option. Change the lblMessage controls Visible property to False.

B. Code the File menus Exit option.

C. The lblMessage 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 boxs 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 customers first name and last name, separated by a space character, on the same line. Then, on the next line, save the customers 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 customers information from the next customers information. Figure 9-36 shows a sample of the sequential access file.

F. Save the solution and then start and test the application. Stop the application and verify the contents of the customers.txt file.

Create a Windows Forms application. Use the following names for the project

and solution, respectively: Customer Project and Customer Solution. A. Create the interface

Customer Information File rst: Last Address: City: ZIP: Save Information saved. bMessage Figure 9-36 Interface and sample file for Exercise 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!