To Notes

Lecture Summary for IT 236 on 7/11/06

 

Review Questions

  1. 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.

  2. 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

  3. What are the five things that can cause a Paint event for a picture box? Ans:
    1. The form containing the picture box is loaded and shown.
    2. The form is restored after being minimized.
    3. The form is exposed after being hidden by another window.
    4. The form is resized.
    5. The Invalidate method for the picture box is invoked.

  4. 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