Learn how to use the Graphics object's methods to draw text in different fontsclipped, wrapped, aligned, stretched, and rotated in all sorts of ways.
by Rod Stephens
December 28, 2006
rawing text in Visual Basic 6 was all very simpleboth the process and the results. First, you would set a form or PictureBox's CurrentX and CurrentY properties and then call the Print method.
In contrast, .NET provides more powerful tools for drawing text. As is so often the case however, the extra power comes with extra complexity. While you can do amazing things with text in .NET, there's a lot more to learn. Still, you can attack the complexity in easily-digestible chunks, beginning with simple text display, then gradually adding new "tricks" such as changing fonts and alignment, clipping, wrapping, shading, and transforming text, until you're thoroughly conversant with .NET's text-display features.
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!