CIS 230
Class #15 Lecture
Answers to Ch. 5, Worksheets are online: wksht 1, wksht 2, wksht 3, wksht 4
Read & discuss the "Guidelines for Declaring Variables and Constants" on p. 216 as a class
Discuss the Coding & Documentation Standards
Begin Ch. 7 Lecture (objectives #1-7)
Midterm Exam #1 Post-Mortem
Ch. 7 Programming Activity #1:
1. Make a combo box and name it cboNames.
2. Set the Style property as dropdown combo.
3. Add your name to the List property.
4. Type Control + Enter in the List property and add the item "John Doe".
5. Set the Text property as "Student Names".
6. Resize the combo box so the whole Text property is displayed.
7. Create a command button and a label.
8. Make the number of items in the combo box appear in the label when the command button is clicked.
9. Execute your program.
10. Create another command button that uses the AddItem method to add the name "Santa Claus" to the combo box when it is clicked.
11. Execute your program and click the second command button. Then, click the first command button to see how many items are now in the combo box.
12. Add a third command button that uses a For/Next loop to change all of the items in the combo box to "Groucho Marx" one at a time. (Hint: Use the List property of the combo box - cboNames.List(j) = "Groucho Marx" where j is your loop variable. Be careful to start your loop at 0 and to choose the correct terminating value.
13. Execute your program, click the first command button, then the second, and then the third command button. Then, click the dropdown triangle to see "Groucho Marx" listed three times.I will tell you where the online solution can be found at the end of class.
(if time) Review Feedback 6.1 on p. 217
(if time) Review selected Ch. 5 Review Questions (#1, 7, 9, 10) on p. 201 & Feedback 5.1 on p. 190
Homework Assignment: