public Point PointToScreen(Point point) { if (!Functions.ClientToScreen(window.Handle, ref point)) { throw new InvalidOperationException(String.Format( "Could not convert point {0} from screen to client coordinates. Windows error: {1}", point.ToString(), Marshal.GetLastWin32Error())); } return(point); }