Skip to Content
Windows Forms Programming in Visual Basic .NET
book

Windows Forms Programming in Visual Basic .NET

by Chris Sells, Justin Gehtland
October 2003
Intermediate to advanced
736 pages
15h 25m
English
Addison-Wesley Professional
Content preview from Windows Forms Programming in Visual Basic .NET

Page Units

So far, we've been concentrating on drawing to the screen. By default, if you're drawing in the Paint event handler, you're drawing in units of pixels. Even if you create a Graphics object from a form using Form.CreateGraphics, you'll be drawing in units of pixels. This is handy because the units of the UI elements, such as the client rectangle and the position and sizes of the controls, are all in pixels.

Pixels translate into real-world coordinates based on system settings for Normal or Small versus Large or Custom fonts, the resolution at which the display adapter is running, and the size of the monitor. Taking all that into account, only some of which is available programmatically, it would be remarkably difficult to display physically ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Visual Basic .NET

Learning Visual Basic .NET

Jesse Liberty
Windows Forms 2.0 Programming

Windows Forms 2.0 Programming

Chris Sells, Michael Weinhardt

Publisher Resources

ISBN: 0321125193Purchase book