21 references to FromHdc
System.Drawing.Common.Tests (3)
System\Drawing\GraphicsTests.cs (3)
28using Graphics graphicsCopy = Graphics.FromHdc(hdc); 84using Graphics graphics = Graphics.FromHdc(hdc); 110AssertExtensions.Throws<ArgumentNullException>("hdc", () => Graphics.FromHdc(IntPtr.Zero));
System.Windows.Forms.Tests (18)
System\Windows\Forms\CheckBoxRendererTests.cs (4)
26using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 62using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 99using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 134using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC);
System\Windows\Forms\ControlPaintTests.Rendering.cs (7)
19using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 38using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 98using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 173using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 247using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 321using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 349using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC);
System\Windows\Forms\RadioButtonRendererTests.cs (4)
25using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 56using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 93using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 113using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC);
System\Windows\Forms\TextBoxRendererTests.cs (3)
34using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 63using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 98using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC);