Syllabus

Home

Class Resources

News

Check Boxes, Radio Buttons and Group Boxes

Interface for UAH Merchandise Order

This form utilizes groupboxes (prefix grp), Check Boxes (prefix chk), and RadioButtons (prefix rad). We will develop this form in class to illustrate the use of these three new VB controls.

 

  1. Name the form frmMerchandise.
  2. Set the Title Bar of the form as shown.
  3. At the bottom add two Buttons: btnOrder,btnQuit. Set the font as you like.
  4. Now add a Group Box at upper left for the list of items for sale.
    name it grpMerchandise, set the Text property to "Merchandise", set the Font as desired.
  5. Add another Group Box at upper right for the choice of garment size. Name it grpSize
  6. Add a third Group Box below the two for shipping choices. Name it grpShipping. Set the Text property to "Shipping". Set the Font as desired.
  7. Now, using the mouse select the Check Box control in the tool box by clicking once and then dragging the Check Box to the form inside the grpMerchandise Group Box. Name the check box chkCap. Set the text property to Cap. Set the font as you like.
  8. Repeat step seven for the other four Check Boxes with appropriate changes to the Name and text properties.
  9. Now, using the mouse select the Radio Button in the tool box by clicking once and then dragging it into the grpSize Group Box. Name the radio Button radSmall. Set the Text Property to "Small". Set the font as you like.
  10. Repeat step nine for the other four Radio Buttons with appropriate changes to the Name and Text properties.
  11. Now, using the mouse select the Radio Button in the tool box again by clicking once and then dragging it into the grpShipping Group Box. Name the radio Button radUPSl. Set the Text Property to "UPS". Set the font as you like.
  12. Repeat step eleven for the other two Radio Buttons with appropriate changes to the Name and Text properties.
  13. Run the program and click the Radio Buttons and Check Boxes. Notice that only one radio button in a group may be selected while any combination of check boxes may be checked.
  14. Save the project.