protected override void Destroy() { if (hPen != (IntPtr) 0) NativeMethods.DeleteObject(hPen); base.Destroy(); hPen = (IntPtr) 0; } }