DotSpatial Library : MapWindow Discussion Forum
Hi,it is glad to share with other peers here. Actually, I get to know with the MapWindow from the codeproject. I found it was very helpful. Recently I am working on my final project which will use some GIS stuff. I would like to access the coordinates of certain points in a shape file. So I tested
Inactive mouse move event
Posted by:
Centaur ()
Date: March 30, 2010 08:25PM
Hi,it is glad to share with other peers here. Actually, I get to know with the MapWindow from the codeproject. I found it was very helpful. Recently I am working on my final project which will use some GIS stuff. I would like to access the coordinates of certain points in a shape file. So I tested the MouseMoveEvent of axMap, try to display the X, Y coordinates while the mouse moving on the axMap. But it seems like there is no reactions of the MouseMoveEvent. I have attached my code below, hopefully someone can help me out kindly. Thanks!
private void axMap1_MouseMoveEvent(object sender, AxMapWinGIS._DMapEvents_MouseMoveEvent e)
{
tsStatusXlabel.Text = e.x.ToString("f3");
tsStatusYLabel.Text = e.y.ToString("f3");
}
private void axMap1_MouseMoveEvent(object sender, AxMapWinGIS._DMapEvents_MouseMoveEvent e)
{
tsStatusXlabel.Text = e.x.ToString("f3");
tsStatusYLabel.Text = e.y.ToString("f3");
}
Re: Inactive mouse move event
Posted by:
Shade1974 ()
Date: April 11, 2010 02:58PM
Sorry but you are posting to the wrong forum. The active X control forum is different. However, the answer is that you need to set the "SendMouseMove" property to true before you will get any of those events.
Shade1974
Shade1974
Re: Inactive mouse move event
Posted by:
manhnhm_fpt ()
Date: October 12, 2010 02:08AM
You must have code following:
AxMap1.SendMouseMove = True
It will run complete
AxMap1.SendMouseMove = True
It will run complete
Sorry, you do not have permission to post/reply in this forum.


