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

Question:

Create a Windows Forms application. Use the following names for the project and solution, respectively: Wedding Project and Wedding Solution. Save the application in the VB2017\Chap09 folder.
a. Create a sequential access file named invited.txt and save it in the Wedding Project’s bin\Debug folder. Enter the names of 20 guests in the file. Each guest’s name should be entered on the same line in this format: last, first (the last name followed by a comma, a space character, and the first name). Close the invited.txt window.
b. Create a second sequential access file named accepted.txt and save it in the Wedding Project’s bin\Debug folder. Enter the following two names in the file: Nitzki, Akanna and Jefferson, Josephine. Close the accepted.txt file. 

c. Create a third sequential access file named rejected.txt and save it in the Wedding Project’s bin\Debug folder. Enter the following name in the file: Kellog, Zelda. Close
the rejected.txt file. 

d. The application’s interface should contain three list boxes named lstInvited, lstAccepted, and lstRejected. Each list box’s Sorted property should be set to True. The lstAccepted and lstRejected controls should have their SelectionMode property set to None. When the interface appears, the contents of the invited.txt, accepted.txt, and rejected.txt files should appear in the appropriate list boxes. 

e. The interface should also contain three buttons with the following captions: Accepted, Rejected, and Exit. The Accepted button should move the name selected in the lstInvited control to the lstAccepted control. The Rejected button should move the name selected in the lstInvited control to the lstRejected control. 

f. Before the form is closed, its FormClosing procedure should save the contents of each list box in the appropriate file. 

g. Save the solution and then start and test the application.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: