Syllabus

Home

Class Resources

News

CS-100 In-Class Project: Traffic Light

 

Details:

  1. Draw the form above.
  2. Name the form frmTraffic.
  3. Set the form's Caption property to "Traffic Signal"
  4. The traffic light is made up of one rounded rectangle shape object with three circle shapes drawn on top. Name them shpBack, shpTop, shpMiddle and shpBottom.
  5. Set the backcolor of the rounded rectangle to yellow and that of the circles to black.
  6. You will also have to set the backstyle property of each shape object to opaque.
  7. There are four command buttons on the right. Name them cmdStop, cmdCaution, cmdGo, and cmdQuit.
  8. Set the caption on each as shown. Note the access key on the Quit button.
  9. Save this form to your floppy disk.