| 13. Do the following to make your windows
form resemble the image below. Use steps 10 to 12 above as
guidance:
Click-and-drag a Button
control onto the windows form and set the properties as follows:
- Change (Name) from Button1 to "ExitButton"
- Change Text from Button1 to "Exit"
Drag-and-drop a second
Button control onto the windows form and set the properties as follows:
- Change (Name) from Button1 to "EnterButton"
- Change Text from Button1 to "Enter"
Drag-and-drop a Label
control onto the windows form and set the properties as follows:
- Change (Name) from Label1 to "idSurnameLabel"
- Set the AutoSize property to "True"
- Change Text from Label1 to "Surname:"
Drag-and-drop a TextBox
control onto the windows from and set the properties as follows:
- Change (Name) from TextBox1 to "SurnameTextBox"
- Delete the word "TextBox1" from the Text property and
leave it blank
Drag-and-drop a Label
control onto the windows form and set the properties as follows:
- Change (Name) from Label1 to "DisplayLabel"
- Delete the word "Label1" from the Text property and
leave it blank
- Click-and-drag the label to the same size as the one shown below
|