Lab 04
Lab 04
2. Activate the 2 radio buttons, so that whenever the "Personal" is checked, the first
panel is shown, and the other is hidden, and whenever the "Education" is checked,
vice versa.
3. Add a button, "Reset", that changes the checkstate property of any chosen
checkbox to "indeterminate".
Exercise 1:
Create the following form, but first add the six radio buttons without the
groupboxes, and check their behavior.
Question: can you choose "Arial" with "Bold" at the same time?
- Now, add the group boxes and check the difference in the radio buttons
behavior.
- Activate the radio buttons so that they change the size, name and style of the
label font.
- Check the behavior of the "Style" radio buttons, can you select "Bold" and
"Italic" at the same time?
1. When the user clicks on the button, the following message box shows:
2. If the user clicks on the OK button, a label shows with “you clicked the Ok
button”.
3. If the user clicks on the Cancel button, a label shows with “you clicked the
Cancel button”.
4. Each time the user clicks on the picture box, the image changes.
Mouse Events
Label 2
Label 3
1. While the cursor moves over the image, the coordinates x and y for the
curser position appear on the form.
2. When the user clicks on the image, the coordinates x and y for the curser
position appear on the form.
3. When the cursor enters the text box, the font size increases, and when the
cursor leaves the text box, the font size returns to its default size.
4. The text in label 2 will be changed to up, down or hover according to the
event performed on the mouse.
5. The text in label 3 will be changed to ”left” if the user clicked on the left
mouse button , and to ”right” if the user clicked on the right mouse button.
Keyboard Events
KeyEventArgs
Events Properties
Alt
Ctrl
Key Down Shift
Key Up Keycode
KeyData
KeyValue
KeyPressEventArgs
Events Properties
Key Press KeyChar
NumericUpDown, ToolTip, and LinkLabel
Textbox3
Label5