Graphical User Interface Using Windows Forms Assignment Overview Users expect normally expect to use an application via a graphical user interface rather than in a terminal window. This assignment...

1 answer below »

Graphical User Interface Using Windows Forms


Assignment Overview


Users expect normally expect to use an application via a graphical user interface rather than in a terminal window. This assignment builds on the code from Unit 2 by having you convert the Course class to a class library that will be reused in this and upcoming assignments. The program for this assignment moves from a console-based application to a Windows Forms application. A Windows Forms application provides a graphical user interface (GUI) in a form that you are familiar with from the most common Windows applications.


Assignment Instructions



  1. Download the file cf_u04a1_Registration_WinForm.ZIP from the Resources. Unzip this file and open the solution it contains in Visual Studio. You may wish to delete or rename the original ZIP file to avoid confusion with the ZIP file holding your completed work.

  2. Start by adding a class library called Course to the downloaded solution as a new project. You will end up with two projects in this Visual Studio solution.

  3. In the Solution Explorer, find the file Class1.cs in the Course project and right click on it. Select Rename and change the file name to Course.cs. When prompted, have Visual Studio update the names in the project.

  4. Copy the source code for the Course class from the Unit 2 assignment to the Course.cs file.

  5. In the Windows Forms project, right click on the References node and select Add Reference... and check the box for Course.

  6. Study the code provided in the Windows Forms project to understand what it does and how it works. Pay particular attention to the comments in the source code. As you write code in the steps below, be sure to document it appropriately with comments.

  7. Complete the code for the event handler method for the ComboBox so that it handles the selection of course in the ComboBox by validating the selection and adding the course number to the list of registered courses in the ListBox.

  8. Complete the code for the button's event handler method so that when the user clicks the button to submit the completed registration, the program writes the list of registered courses to the output file.

  9. Zip the modified Visual Studio solution and submit it as an attachment for this assignment.


Assignment Requirements


Be sure that your program:



  • Is a syntactically correct, well documented C# console application that compiles and runs without warnings or errors.

  • Includes the Course class as a reusable library class.

  • Implements the event handler method for item selection in the ComboBox control correctly.

  • Implements the event handler method for the submit button correctly.

  • Writes valid registrations to the registered.courses.txt file with appropriate exception handling.

Answered Same DayMay 01, 2022

Answer To: Graphical User Interface Using Windows Forms Assignment Overview Users expect normally expect to use...

Raja answered on May 02 2022
88 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here