Sams Teach Yourself Visual Basic 2010 in 24 Hours Complete Starter Kit (Sams Teach Yourself -- Hours)
Answers to Hour 10
| 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, the graphics must be drawn on the form in what event? |
| A8: | The form's Paint event |
| Top |