Lab Visual Programming - 5
Lab Visual Programming - 5
*Objective:
Create an application that allows students to register for courses from a list of
available courses.
*Components Required:
- Labels
- ListBox
- ComboBox
- Buttons
*Instructions:
1. Create a new Windows Forms application in Visual Studio.
2. Add a label for "Available Courses".
3. Add a ComboBox populated with a list of courses (e.g., "Mathematics",
"Physics", "Chemistry", "Biology").
4. Add a button labeled "Register".
5. Add a label for "Registered Courses".
6. Add a ListBox to display the registered courses.
7. Add a button labeled "Drop Selected" to remove the selected course from the
registered courses.
*Functionality:
- The user selects a course from the ComboBox and clicks the "Register" button to
add the course to the ListBox.
- The user can select a course in the ListBox and click the "Drop Selected" button
to remove it from the registered courses.
*Example UI Layout:
```
Available Courses: [ComboBox]
[Button] Register
Registered Courses:
[ListBox]
[Button] Drop Selected