8 references to FromHdcInternal
System.Drawing.Common.Tests (2)
System\Drawing\GraphicsTests.cs (2)
102using Graphics graphics = Graphics.FromHdcInternal(hdc); 116Assert.Throws<OutOfMemoryException>(() => Graphics.FromHdcInternal(IntPtr.Zero));
System.Windows.Forms (3)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3766using Graphics g = Graphics.FromHdcInternal((IntPtr)dc);
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
383using Graphics graphics = Graphics.FromHdcInternal(dc);
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
111_graphics = Graphics.FromHdcInternal((IntPtr)_hdc);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\DeviceContextExtensions.cs (2)
124internal static Graphics CreateGraphics(this CreateDcScope hdc) => Graphics.FromHdcInternal(hdc.HDC); 125internal static Graphics CreateGraphics(this GetDcScope hdc) => Graphics.FromHdcInternal(hdc.HDC);
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (1)
99using Graphics g = Graphics.FromHdcInternal(hdc);