Hour 18

1: What object is used to draw to a surface?
A1: Graphics
2: To set a Graphics object to draw to a form directly, you call what method of the form?
A2: CreateGraphics()
3: What object defines the characteristics of a line? A fill pattern?
A3: Pens define lines; brushes define fill patterns.
4: How do you make a color property adjust with the user's Windows settings?
A4: Assign a system color to the property.
5: What object is used to define the bounds of a shape to be drawn?
A5: Rectangle
6: What method do you call to draw an irregular ellipse? A circle?
A6: Ellipses and circles are both drawn using the DrawEllipse() method.
7: What method do you call to print text on a Graphics surface?
A7: DrawString()
8: To ensure that graphics persist on a form, ...

Get Sams Teach Yourself Microsoft® Visual C#™ .NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.