This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: • Be careful about off-by-one errors-check boundary conditions • Initialize all variables • Counter-controlled iteration is very common- has its own control structure----New Windows Form: ListBox: a list of items, controlled by code (like a label, users can’t change it) entriesListBox.Items.Clear () ------------clear all the entries object object method entriesListBox.Items.Add (“New item”) entriesListBox.Items.Cont Mystring=entriesListBox. Item. Item (0) entriesListBox.Items.RemoveAt (2)...
View Full Document
This note was uploaded on 12/01/2011 for the course 6K 226 taught by Professor Staff during the Fall '10 term at University of Iowa.
- Fall '10