Lab #1

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.
  1. Planning the Form
     

  2. Planning Objects and Properties

    ObjectPropertySetting
    Main FormNameGreetingForm
     TextCSIS 3726 - Lab #1
     StartPositionCenterScreen
    Message LabelNameMessageLabel
    FontMicrosoft Sans Serif, Regular, 12 size
    TextAlignMiddleCenter
    AutoSizeTrue
    Programmed By LabelNameProgrammedByLabel
    TextProgrammed By: Your Name
    Saying 1 ButtonNameSaying1Button
    TextSaying #1
    Saying 2 ButtonNameSaying2Button
    TextSaying #2
    Saying 3 ButtonNameSaying3Button
    TextSaying #3
    Saying 4 ButtonNameSaying4Button
    TextSaying #4
    Exit ButtonNameExitButton
    TextExit
  3. Planning Event Procedures

    ProcedureActions - Pseudocode
    Saying1Button_ClickDisplay "Some random message"
    Saying2Button_Click
    Saying3Button_Click
    Saying4Button_Click
    ExitButton_ClickEnd the project