![]() It’s not recommended that you draw on a TextBox control, of course, unless you’re coding a peculiar application. It goes without saying that the PictureBox control exposes a Graphics property, but so does the TextBox control, as well as many controls you wouldn’t expect. ![]() Conversely, if an object doesn’t expose the CreateGraphics method, you can’t draw on its surface. ![]() All the controls you can draw on expose a Graphics property, which is an object, and you can retrieve it with the CreateGraphics method. The Graphics object is the drawing surface - your canvas. No matter what you draw or which drawing instrument you use, one or more of the objects discussed in this section will be required. This is a good point to introduce some of the objects we’ll be using all the time when drawing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |