public void DrawCursorToHandle(IntPtr hdcDest, Point cursorOffset) { if (IconHandle != IntPtr.Zero) { Point drawPosition = new Point(Position.X - cursorOffset.X, Position.Y - cursorOffset.Y); NativeMethods.DrawIconEx(hdcDest, (int)drawPosition.X, (int)drawPosition.Y, IconHandle, 0, 0, 0, IntPtr.Zero, NativeMethods.DI_NORMAL); } }