Get the mouse location from a screen point.

2 posts, 0 answers
  1. Clint Singer
    Clint Singer avatar
    133 posts
    Member since:
    Oct 2012

    Posted 23 Nov 2009 Link to this post


    How does one go about getting a location if all you have is the mouse coordinates?  The reason why I ask is that I am handling the mouse move event which only has e.GetPosition() to get my position relative to my control.  I need to convert that to a Location relative to the map.

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 25 Nov 2009 Link to this post

    Hi Clint,

    You can use the static GetCoordinates(...) method of the Location class. It returns the Location according to the pixel point on the map control.

    Best wishes,
    Andrey Murzov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top