15 references to Handle
System.Drawing (4)
commonui\System\Drawing\Icon.cs (4)
144
handle = SafeNativeMethods.CopyImage(new HandleRef(original, original.
Handle
), SafeNativeMethods.IMAGE_ICON, iconSize.Width, iconSize.Height, 0);
327
SafeNativeMethods.GetIconInfo(new HandleRef(this,
Handle
), info);
877
SafeNativeMethods.PICTDESC pictdesc = SafeNativeMethods.PICTDESC.CreateIconPICTDESC(
Handle
);
1073
using(Bitmap tmpBitmap = Bitmap.FromHicon(this.
Handle
)) {
System.Windows.Forms (11)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
116
pictdesc = NativeMethods.PICTDESC.CreateIconPICTDESC(((Icon)lastManaged).
Handle
);
winforms\Managed\System\WinForms\Cursor.cs (1)
278
SafeNativeMethods.GetIconInfo(new HandleRef(this, currentIcon.
Handle
), info);
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1680
return icon.
Handle
;
winforms\Managed\System\WinForms\Form.cs (3)
3702
UnsafeNativeMethods.SendMessage(TaskbarOwner, NativeMethods.WM_SETICON, NativeMethods.ICON_BIG, icon.
Handle
);
6819
SendMessage(NativeMethods.WM_SETICON,NativeMethods.ICON_SMALL,smallIcon.
Handle
);
6821
SendMessage(NativeMethods.WM_SETICON,NativeMethods.ICON_BIG,icon.
Handle
);
winforms\Managed\System\WinForms\ImageList.cs (1)
483
int index = SafeNativeMethods.ImageList_ReplaceIcon(new HandleRef(this, Handle), -1, new HandleRef(icon, icon.
Handle
));
winforms\Managed\System\WinForms\NativeMethods.cs (1)
2732
hicon = SafeNativeMethods.CopyImage(new HandleRef(icon, icon.
Handle
), NativeMethods.IMAGE_ICON, icon.Size.Width, icon.Size.Height, 0);
winforms\Managed\System\WinForms\NotifyIcon.cs (1)
784
data.hIcon = icon.
Handle
;
winforms\Managed\System\WinForms\StatusBarPanel.cs (2)
212
IntPtr handle = (this.icon == null) ? IntPtr.Zero : this.icon.
Handle
;
649
this.parent.SendMessage(NativeMethods.SB_SETICON, (IntPtr)GetIndex(), this.icon.
Handle
);