This example changes the color of a pre-existing Pen object
Example
|
myPen.Color = System.Drawing.Color.PeachPuff
|
|
myPen.Color = System.Drawing.Color.PeachPuff;
|
|
myPen->Color = System::Drawing::Color::PeachPuff;
|
Compiling the Code
Robust Programming
You should call Dispose on objects that consume system resources (such as Pen objects) after you are finished using them.
See Also