Home
Home
Teaching
[ Error ]
Lab #1
2022_Fall_CSIS3726_45175
Lectures
Labs
Lab #1
Lab #2
Lab #3
Lab #4
Lab #5
Lab #9
Lab #10
Homework
Submit Assignments
Links
Lab #1 - Random Sayings
Submit Assignment
Write a project that displays four sayings, such as "The early bird gets the worm" or "A penny saved is a penny earned." (You will want to keep the sayings short, as each must be entered on one line.) When the sayings displays on your form, long lines will run off the form if the label's AutoSize property is set to True. To wrap text within the label, change the AutoSize property to False and use the sizing handles to make the label large enough.
Make a button for each saying with a descriptive Text property for each, a button to print, and a button to exit the project.
Include a label that holds your name at the bottom of the form. Also, make sure to change the form's title bar to something meaningful.
You may change the Font properties of the large label to the font and size of your choice.
Make sure the buttons are large enough to hold their entire Text properties.
Be sure to include comments at the top of each procedure and at the top of the file.
Be sure to use meaningful names for all buttons and labels.
Submit lab assignments
via submission tool
.
Planning the Form
Planning Objects and Properties
Object
Property
Setting
Main Form
Name
GreetingForm
Text
CSIS 3726 - Lab #1
StartPosition
CenterScreen
Message Label
Name
MessageLabel
Font
Microsoft Sans Serif, Regular, 12 size
TextAlign
MiddleCenter
AutoSize
True
Programmed By Label
Name
ProgrammedByLabel
Text
Programmed By: Your Name
Saying 1 Button
Name
Saying1Button
Text
Saying #1
Saying 2 Button
Name
Saying2Button
Text
Saying #2
Saying 3 Button
Name
Saying3Button
Text
Saying #3
Saying 4 Button
Name
Saying4Button
Text
Saying #4
Exit Button
Name
ExitButton
Text
Exit
Planning Event Procedures
Procedure
Actions - Pseudocode
Saying1Button_Click
Display "Some random message"
Saying2Button_Click
Saying3Button_Click
Saying4Button_Click
ExitButton_Click
End the project