To Notes
Lecture Summary for IT 236 on 7/11/06
 
Review Questions
- If ds is a DataSet object, what kind of items are contained in
ds.Tables(0).Rows?
Ans: The rows of Tables(0), which have the datatype DataRow.
- Write a For loop that copies each item in Column 1 of
ds.Tables(0) to the combo box cb. Ans:
For i = 0 To n - 1 ' n is obtained from da.Fill(ds, "tn")
cb.Items.Add(ds.Tables(0).Item(1)
Next
- What are the five things that can cause a Paint event for
a picture box? Ans:
- The form containing the picture box is loaded and shown.
- The form is restored after being minimized.
- The form is exposed after being hidden by another window.
- The form is resized.
- The Invalidate method for the picture box is invoked.
- Why is it convenient to put all drawing code for an application
in a Paint event handler.
Ans: Because then that code is used to redraw the window whenever
necessary.
 
Go Over Quizzes
Review for Final