18 references to FromHandle
System.Drawing.Common.Tests (12)
System\Drawing\IconTests.cs (12)
293
using var icon = Icon.
FromHandle
(SystemIcons.Hand.Handle);
323
using var icon = Icon.
FromHandle
(source.Handle);
460
var icon = Icon.
FromHandle
(source.Handle);
480
using var icon = Icon.
FromHandle
(source.Handle);
545
using Icon icon = Icon.
FromHandle
(originalIcon.Handle);
637
using Icon icon2 = Icon.
FromHandle
(icon1.Handle);
647
using (Icon icon2 = Icon.
FromHandle
(icon1.Handle))
654
using Icon icon3 = Icon.
FromHandle
(icon1.Handle);
669
using Icon icon2 = Icon.
FromHandle
(handle);
684
using (Icon icon2 = Icon.
FromHandle
(handle))
691
using Icon icon3 = Icon.
FromHandle
(handle);
700
AssertExtensions.Throws<ArgumentException>("handle", null, () => Icon.
FromHandle
(IntPtr.Zero));
System.Windows.Forms (2)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3537
=> cursor is null ? null : IPicture.CreateObjectFromIcon(Icon.
FromHandle
(cursor.Handle), copy: true);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
66
_lastManaged = Icon.
FromHandle
(extendedHandle);
System.Windows.Forms.Tests (4)
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
288
using var value = Icon.
FromHandle
(new Bitmap(10, 10).GetHicon());
System\Windows\Forms\ErrorProviderTests.cs (3)
535
yield return new object[] { Icon.
FromHandle
(new Bitmap(10, 10).GetHicon()) };
561
provider.Icon = Icon.
FromHandle
(new Bitmap(10, 10).GetHicon());
573
provider.Icon = Icon.
FromHandle
(new Bitmap(10, 10).GetHicon());