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