Activity 3
Title: Login + Main Menu with 5 Tasks
Objective: Practice event-driven programming in [Link] by designing user interfaces, writing code for
functionality, and navigating between forms.
---
General Instructions
1. Create a new Windows Forms App (.NET Framework) in Visual Studio 2022.
2. Add 7 Forms to the project:
FormLogin → Simple login screen.
FormMain → Main menu with buttons to open 5 tasks.
Form1 – Form5 → Each form will contain one selected activity.
3. Set FormLogin as the startup form.
4. After successful login → show the Main Menu.
5. From the menu → open any of the 5 chosen tasks.
6. Add a Logout button in the main menu to return to the login form.
---
FormLogin (Login Screen)
Create a login form with:
Label and TextBox for Username.
Label and TextBox for Password (hide characters).
Login button.
Requirements:
If username and password are correct → open FormMain.
Otherwise → show an error message.
---
FormMain (Main Menu)
Create a main menu with:
A label: “Choose a Task”.
5 buttons (Task 1 – Task 5).
A Logout button.
Each button should open a corresponding activity form (Form1–Form5).
Logout button returns to FormLogin.
---
Task Options (Choose 5 out of 10)
Instruction: Each task have provided UI and requirement as example. You can change or add additional
UI and requirement to your desired styles and ideas.
Task 1: Temperature Converter
UI: TextBox for Celsius input, Button to convert, Label for result.
Requirement: Convert Celsius to Fahrenheit using formula (C × 9/5) + 32.
---
Task 2: To-Do List
UI: TextBox for task, Button to add, ListBox to display tasks, Button to remove selected task.
Requirement: Add and remove tasks from the list.
---
Task 3: Guessing Game
UI: TextBox for guess, Button to check, Label for result.
Requirement: Generate a random number between 1–50. Compare user’s guess → show “Too Low”,
“Too High”, or “Correct!”.
---
Task 4: Student Grade Checker
UI: TextBox for score, Button to check, Label for grade.
Requirement: Show remarks:
90–100 → Excellent
75–89 → Passed
Below 75 → Failed
---
Task 5: Stopwatch
UI: Label for timer, Buttons for Start, Stop, Reset, Timer control.
Requirement: Count seconds when started, stop when clicked, reset to 0.
---
Task 6: Image Viewer
UI: PictureBox, Button to load image, Button to clear image.
Requirement: Load image from file and display it; allow clearing the image.
---
Task 7: Currency Converter
UI: TextBox for PHP amount, ComboBox for currency (USD, EUR, JPY), Button to convert, Label for result.
Requirement: Convert PHP to selected currency (use fixed rates in code).
---
Task 8: Registration Form
UI: TextBoxes for Name, Age, Email; RadioButtons for Gender; CheckBoxes for Skills; Button Submit.
Requirement: On submit, show all information in a MessageBox.
---
Task 9: Mini Text Editor
UI: Multiline TextBox, Buttons for New, Open, Save, Clear.
Requirement: Open and save text files using dialogs; allow clearing text.
---
Task 10: Multiplication Table Generator
UI: TextBox for number, Button Generate, ListBox to display results.
Requirement: Generate multiplication table (1–10) for the input number.
---
Submission Requirements
Students must:
1. Implement a working Login + Main Menu.
2. Choose any 5 tasks from the list and make them fully functional.
3. Ensure proper naming of controls and clean UI.
4. Test each task before submission.
---
Deadline/Presentation: Midterm Exam Date after Exam.