Syllabus

Home

Class Resources

 

CS-100 In-Class Project: Favorite Pet

Details:

  1. Create a new Visual Basic project and create the form shown above as described below.
  2. Name the form frmPets.
  3. Set the form's Text property to "Favorite Pets "
  4. Add a label named lblTitle to the top with a large bold font that reads "Which pet is your favorite?"
  5. Add four buttons named btnBird, btnRabbit, btnDog, and btnCat.
  6. Using the Image property for each button add the respective pictures. (NOTE: You can grab the pictures from the panel to the right of the Form Image above.)
  7. Add three labels named lblName, lblAddress and lblChoice that instruct the user to enter their name, e-mail address and choice of pet as shown above.
  8. Add three text boxes named txtName, txtAddress and txtChoice that allow the user to enter their information as shown above.
  9. Add a button named btnSubmit with the word "Submit" in large letters.
  10. Run the program to activate the form.
  11. While the program is running capture the result to the clipboard by pressing the ALT key plus the Print Screen key.
  12. Start Microsoft Word and paste the screen capture into a new document.
  13. Give the picture a caption, add your name and print out the resulting document.
  14. Save this form to your thuymb drive or other media and turn in the printed output.