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));
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.