18 references to FromHandle
System.Drawing.Common.Tests (12)
System\Drawing\IconTests.cs (12)
293using var icon = Icon.FromHandle(SystemIcons.Hand.Handle); 323using var icon = Icon.FromHandle(source.Handle); 460var icon = Icon.FromHandle(source.Handle); 480using var icon = Icon.FromHandle(source.Handle); 545using Icon icon = Icon.FromHandle(originalIcon.Handle); 637using Icon icon2 = Icon.FromHandle(icon1.Handle); 647using (Icon icon2 = Icon.FromHandle(icon1.Handle)) 654using Icon icon3 = Icon.FromHandle(icon1.Handle); 669using Icon icon2 = Icon.FromHandle(handle); 684using (Icon icon2 = Icon.FromHandle(handle)) 691using Icon icon3 = Icon.FromHandle(handle); 700AssertExtensions.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)
288using var value = Icon.FromHandle(new Bitmap(10, 10).GetHicon());
System\Windows\Forms\ErrorProviderTests.cs (3)
535yield return new object[] { Icon.FromHandle(new Bitmap(10, 10).GetHicon()) }; 561provider.Icon = Icon.FromHandle(new Bitmap(10, 10).GetHicon()); 573provider.Icon = Icon.FromHandle(new Bitmap(10, 10).GetHicon());