Your mission: Write a Windows application that gets names and e-mail addresses from the user and displays a list of all of the user's contacts. Each time the user enters a new contact, he/she should able to see it added to a list of previously stored contacts. For example, in the following sample output below, after the user clicks the "Add Contact" button, the list will include John Mann's contact information at the bottom.
Sample output: See image.
Best practice: First, make sure to read through this week's lecture and textbook readings to get ideas about how to work with files. Then, before attempting a GUI application, just try implementing a short console application to open an existing .txt file, add some lines to it, and then close it. Use Windows Explorer to navigate to the file, open it, and see if your program worked. If it did, then try to open the .txt file from your console app and read data from it. Once you have that working, try the same operations in the form of a GUI app. Refer to the textbook for useful examples.
Note: Make sure to first create a .txt file in your project's bin/Debug folder to hold the contact info.
When designing the GUI, consider initially disabling the e-mail textbox and the button until all information is entered. Redisable them when the button is clicked. Note that you can also use the Tab Index property of GUI objects to set their order of use.