44 references to DeleteObject
System.Windows.Forms (44)
winforms\Managed\System\WinForms\Control.cs (12)
3599SafeNativeMethods.DeleteObject(new HandleRef(null, regionHandle)); 6000SafeNativeMethods.DeleteObject(new HandleRef(this, p)); 7235SafeNativeMethods.DeleteObject(new HandleRef(region, regionHandle)); 7971SafeNativeMethods.DeleteObject(new HandleRef(this, p)); 8759SafeNativeMethods.DeleteObject(new HandleRef(null, regionHandle)); 8876SafeNativeMethods.DeleteObject(new HandleRef(this, p)); 10365success = SafeNativeMethods.DeleteObject(hClippingRegion); 17452SafeNativeMethods.DeleteObject(new HandleRef(null, region)); 17455SafeNativeMethods.DeleteObject(new HandleRef(null, newRegion)); 19272success = SafeNativeMethods.DeleteObject(hBitmap); 19393SafeNativeMethods.DeleteObject(hNullBitmap); 20017SafeNativeMethods.DeleteObject(new HandleRef(this, handle));
winforms\Managed\System\WinForms\ControlPaint.cs (7)
175SafeNativeMethods.DeleteObject(new HandleRef(null, palette)); 220SafeNativeMethods.DeleteObject( new HandleRef( null, previousBitmap ) ); 230SafeNativeMethods.DeleteObject( new HandleRef( null, hBitmap ) ); 348SafeNativeMethods.DeleteObject(new HandleRef(null, hBitmap)); 1809SafeNativeMethods.DeleteObject(new HandleRef(null, pen)); 1840SafeNativeMethods.DeleteObject(new HandleRef(null, pen)); 2018SafeNativeMethods.DeleteObject(new HandleRef(null, brush));
winforms\Managed\System\WinForms\DataGrid.cs (1)
5862SafeNativeMethods.DeleteObject(new HandleRef(null, halftone));
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
5777SafeNativeMethods.DeleteObject(new HandleRef(null, halftone)); 5793SafeNativeMethods.DeleteObject(new HandleRef(null, halftone));
winforms\Managed\System\WinForms\DataObject.cs (2)
172SafeNativeMethods.DeleteObject(new HandleRef(bm, hBitmap)); 1644SafeNativeMethods.DeleteObject(new HandleRef(null, medium.unionmember));
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (2)
697SafeNativeMethods.DeleteObject(new HandleRef(null, hbitmapTemp)); 828SafeNativeMethods.DeleteObject(new HandleRef(this, hbrushDither));
winforms\Managed\System\WinForms\ErrorProvider.cs (2)
1274SafeNativeMethods.DeleteObject(new HandleRef(null, windowRegionHandle)); 1725SafeNativeMethods.DeleteObject(new HandleRef(null, mask));
winforms\Managed\System\WinForms\ImageList.cs (4)
500SafeNativeMethods.DeleteObject(new HandleRef(null, hBitmap)); 501SafeNativeMethods.DeleteObject(new HandleRef(null, hMask)); 1172SafeNativeMethods.DeleteObject(new HandleRef(null, hBitmap)); 1173SafeNativeMethods.DeleteObject(new HandleRef(null, hMask));
winforms\Managed\System\WinForms\MDIClient.cs (2)
319SafeNativeMethods.DeleteObject(new HandleRef(null, rgn2)); 325SafeNativeMethods.DeleteObject(new HandleRef(null, rgn1));
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
3898SafeNativeMethods.DeleteObject(new HandleRef(Font, hFont));
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1641SafeNativeMethods.DeleteObject(new HandleRef(null, halftone));
winforms\Managed\System\WinForms\Splitter.cs (1)
778SafeNativeMethods.DeleteObject(new HandleRef(null, halftone));
winforms\Managed\System\WinForms\ToolStrip.cs (1)
5260SafeNativeMethods.DeleteObject(cachedItemBitmap);
winforms\Managed\System\WinForms\ToolStripTextBox.cs (3)
745SafeNativeMethods.DeleteObject(hNonClientRegion); 751SafeNativeMethods.DeleteObject(hClientRegion); 756SafeNativeMethods.DeleteObject(hTotalRegion);
winforms\Managed\System\WinForms\WinFormsUtils.cs (3)
671SafeNativeMethods.DeleteObject(hOriginalClippingRegion); 697success = SafeNativeMethods.DeleteObject(hClippingRegion); 701success = SafeNativeMethods.DeleteObject(hOriginalClippingRegion);