Drawing with the .NET Namespaces

Windows has a very rich user interface. Users interact with it through a visual display; they click menus, buttons, and toolbars; they read text and respond to dialog boxes. All of these are things that must be drawn to the screen. A button is simply a bitmap image—a set of pixels. As such, it must be drawn, and someone must write the code to draw it.

GDI+

All drawing with .NET-managed code happens through the Graphics Device Interface plus (GDI+) layer. GDI+ is the new API Windows uses to provide the .NET Framework with graphics, imaging, printing, and typography capabilities. Prior to .NET, VB programmers mostly had to rely on Win32 API calls into GDI to execute drawing functions. In .NET, GDI+ is wrapped by ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library 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.