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));
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.