public System.Drawing.Graphics Control.CreateGraphics()
-->
Control.CreateGraphicsInternal()
-->
Graphics.FromHwndInternal(this.Handle)
-->
public static Graphics Graphics.FromHwndInternal(IntPtr hwnd)
{
IntPtr nativeGraphics = IntPtr.Zero;
int status = SafeNativeMethods.Gdip.GdipCreateFromHWND(new HandleRef(null, hwnd), out nativeGraphics);
if (status != SafeNativeMethods.Gdip.Ok) {
throw SafeNativeMethods.Gdip.StatusException(status);
}
return new Graphics(nativeGraphics);
}