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