Learning by Example: A Forms-Based Drawing Application

In this example, we build upon what you've learned throughout the chapter to create a simple, forms-based drawing application. As an application, it is not very useful; the Paint application that ships with all copies of Windows has more features. However, as a learning tool, it should give you a nice test harness in which to experiment with writing your own code and to watch code execute.

Key Concepts Covered

The following represents the key concepts covered by this sample application:

  • Creating an MDI application

  • Managing a drawing surface

  • Maintaining drawing state with the GraphicsState class

  • Using the Color structure

  • Drawing, filling, and transforming shapes with the Graphics class

MDI Parent ...

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.