CIS 162 AD - C# Programming I - Section 5832
Quiz #2
Due Thursday, April 20, 2006

Name:

I. Definitions: please explain the following terms

  1. delegate signature

  2. Control class

  3. Toolbox

  4. MainMenu control

  5. location property of a control

  6. TabIndex property

  7. focus method

II. Questions or short essay

  1. Wht is the purpose of the Items property of a ListBox?

  2. What is the default event for a ComboBox?

  3. What is the purpose of putting the '&' character in the text that appears in a menu item?

  4. Describe two Predefined Standard Windows Dialog Boxes that could be added to your form?

  5. Why might you set the multiline property of a text box to true?

  6. What is the default event handler method for CheckBox objects?

  7. Why is it usually better to associate only one event method with all of the check boxes in a group of check boxes on a form?

III. Programming Exercise Write source code for the following:

    Create an order form that allows bags to be purchased. There are six different types: full decorative, beaded, needlepoint design, fringed, fringed beaded, and plain. Create a ListBox object for the different styles. After the user makes a selection, display a message indicating which selection was made. Add to the application by including a control that allows the user to enter the quantity desired. Include a set of radio buttons that contain shipping options of overnight, three day, and standard. The price for each bag is as follows: full decorative - $50; beaded - $45; needlepoint - $40; fringed - $25; fringed beaded - $30; and plain - $20. The shipping charges are based on the total purchase. The following percentages are used: overnight – 10%; three day- 7%; and standard – 5%. Display in a message box the shipping charge along with the selection, quantity, and total cost.