CIS 162 AD - C# Programming I - Section 5832
Worksheet #6
Due Thursday, April 13, 2006
Name:
I. Definitions: please explain the following terms
- delegate
- event wiring
- ListBox
- CheckBox
- RadioButton
- multicast delegate
- GroupBox control
II. Questions or short essay:
- How are ComboBoxes different from ListBoxes?
- How do you design your form so that a group of radio buttons will work correctly together?
- What two parameters are included in event-handler methods?
- How do you add an item to a list box at run time?
- What is the default event-handler method for a list box?
- After you type the text for a menu, what else must be done before the menu will be seen on a form?
- 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.