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