|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
How to: Create a Pen
.NET Framework 2.0
This example creates aobject.
After you have finished using objects that consume system resources, such as Pen objects, you should callon them.