CIS 162 AD - C# Programming I - Section 5832
Worksheet #6
Due Thursday, April 13, 2006

Name:

I. Definitions: please explain the following terms

  1. delegate

  2. event wiring

  3. ListBox

  4. CheckBox

  5. RadioButton

  6. multicast delegate

  7. GroupBox control

II. Questions or short essay:

  1. How are ComboBoxes different from ListBoxes?

  2. How do you design your form so that a group of radio buttons will work correctly together?

  3. What two parameters are included in event-handler methods?

  4. How do you add an item to a list box at run time?

  5. What is the default event-handler method for a list box?

  6. After you type the text for a menu, what else must be done before the menu will be seen on a form?

  7. What is a KeyPress() event?
III. Programming Exercise: Write source code for the following:

    Programming exercise #6 on page 553: Create a Windows application for purchasing carpet. Allow the length and width of a room to be entered. Have a control that displays different prices of carpet. Include, for example, prices such as $21.95 per square yard. After the users enter their room dimensions and the price of the carpet, display the total cost to carpet the room.