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));
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.