9 references to FromHdcInternal
System.Drawing.Common.Tests (3)
System\Drawing\GraphicsTests.cs (3)
103
using Graphics graphics = Graphics.
FromHdcInternal
(hdc);
117
Assert.Throws<ExternalException>(() => Graphics.
FromHdcInternal
(IntPtr.Zero));
236
Assert.Throws<ExternalException>(() => Graphics.
FromHdcInternal
(10));
System.Windows.Forms (3)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3767
using Graphics g = Graphics.
FromHdcInternal
((IntPtr)dc);
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
383
using Graphics graphics = Graphics.
FromHdcInternal
(dc);
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
110
_graphics = Graphics.
FromHdcInternal
((IntPtr)_hdc);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\DeviceContextExtensions.cs (2)
124
internal static Graphics CreateGraphics(this CreateDcScope hdc) => Graphics.
FromHdcInternal
(hdc.HDC);
125
internal static Graphics CreateGraphics(this GetDcScope hdc) => Graphics.
FromHdcInternal
(hdc.HDC);
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (1)
99
using Graphics g = Graphics.
FromHdcInternal
(hdc);