MapPoint referencePole; // Set elsewhere in application var screenPoint = Map.MapToScreen(referencePole); // Get position of Map Control on screen var locationFromScreen = Map.PointToScreen(new System.Windows.Point(0, 0)); // Set cursor based on the above reference point and the location of the MapControl System.Windows.Forms.Cursor.Position = new Point(Convert.ToInt32(locationFromScreen.X + screenPoint .X), Convert.ToInt32(locationFromScreen.Y + screenPoint .Y));
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.