1 write to dc
System.Windows.Forms (1)
winforms\Managed\System\WinForms\PaintEvent.cs (1)
85this.dc = dc;
8 references to dc
System.Windows.Forms (8)
winforms\Managed\System\WinForms\PaintEvent.cs (8)
116return dc; 132if (graphics == null && dc != IntPtr.Zero) { 133oldPal = Control.SetUpPalette(dc, false /*force*/, false /*realize*/); 134graphics = Graphics.FromHdcInternal(dc); 164if (graphics != null && dc != IntPtr.Zero) { 169if (oldPal != IntPtr.Zero && dc != IntPtr.Zero) { 170SafeNativeMethods.SelectPalette(new HandleRef(this, dc), new HandleRef(this, oldPal), 0); 182Debug.Assert(dc == IntPtr.Zero || savedGraphicsState != null, "Called ResetGraphics more than once?");