Windows Forms Application – Practice on Conditions, Switch & Loops

Lab Scenario
You are required to design ONE Windows Form Application that contains separate buttons for practicing:
Conditions (if / else)
Switch statement
Loop structures
Each button should perform a different logical task when clicked.
Form Design Instructions
Create a Windows Form with the following controls:
Form Name: FrmControlStructures
Controls to Add
| Control Type | Name | Purpose |
| Label | lblTitle | Display application title |
| TextBox | txtInput | Accept user input |
| Button | btnCondition | Condition task |
| Button | btnSwitch | Switch-case task |
| Button | btnLoop | Loop task |
| Label | lblOutput | Display output |
Task 1: Condition (If / Else)
Button: btnCondition
Task Description
Ask the user to enter a number
Check whether the number is:
Positive
Negative
Zero
Expected Output
Display the result in a MessageBox or Label
Task 2: Switch Statement
Button: btnSwitch
Task Description
Enter a number from 1 to 7
Display the corresponding day of the week
Expected Output
| Input | Output |
| 1 | Monday |
| 2 | Tuesday |
| ... | ... |
| 7 | Sunday |
Task 3: Loop Structure
Button: btnLoop
Task Description
Enter a number N
Display numbers from 1 to N using a loop
Expected Output
Example: Input = 5
Output: 1 2 3 4 5



