Home > Articles > Programming > Windows Programming

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Answers

1. What object is used to draw to a surface?

		Graphics

2. To set a Graphics object to draw to a form directly, you call what method of the form?

		CreateGraphics()

3. What object defines the characteristics of a line? A fill pattern?

Pens define lines, brushes define fill patterns.

4. How do you make a color property adjust with the user's Windows settings?

Assign a system color to the property

5. What object is used to define the bounds of a shape to be drawn?

		Rectangle

6. What method do you call to draw an irregular ellipse? A circle?

Ellipses and circles are both drawn using the DrawEllipse() method.

7. What method do you call to print text on a Graphics surface?

		DrawString()

8. To ensure that graphics persist on a form, the graphics must be drawn on the form in what event?

The form's Paint event

  • + Share This
  • 🔖 Save To Your Account