12 references to FromHdcInternal
System.Drawing.Common.Tests (3)
System\Drawing\GraphicsTests.cs (3)
103using Graphics graphics = Graphics.FromHdcInternal(hdc); 117Assert.Throws<ExternalException>(() => Graphics.FromHdcInternal(IntPtr.Zero)); 236Assert.Throws<ExternalException>(() => Graphics.FromHdcInternal(10));
System.Windows.Forms (5)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
3767using Graphics g = Graphics.FromHdcInternal((IntPtr)dc); 3786using Graphics g = Graphics.FromHdcInternal((HDC)m.WParamInternal);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
668using Graphics graphics = Graphics.FromHdcInternal((HDC)m.WParamInternal);
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
383using Graphics graphics = Graphics.FromHdcInternal(dc);
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
110_graphics = Graphics.FromHdcInternal((IntPtr)_hdc);
System.Windows.Forms.Primitives (3)
System\Windows\Forms\DeviceContextExtensions.cs (3)
123internal static Graphics CreateGraphics(this HDC hdc) => Graphics.FromHdcInternal(hdc); 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);