Hi Wilfried...
You're welcome
Now I want to deactivate the moving of shapes only, because with the source code above this also deactivates the viewing of pushpins' labels
I've tried the following to deactivate the moving of shapes only but I can't understand why it does not work as I would like it to ?
Code:
bool select_change_busy = false;
private void axMappointControl1_SelectionChange(object sender, AxMapPoint._IMappointCtrlEvents_SelectionChangeEvent e)
{
if (!select_change_busy)
{
select_change_busy=true;
MapPoint.Shape sp;
MapPoint.Location loc;
MapPoint.Shape sp2;
try
{
sp2 = (MapPoint.Shape) e.pNewSelection;
loc = axMappointControl1.ActiveMap.GetLocation(80,0,0);
sp = axMappointControl1.ActiveMap.Shapes.AddShape(MapPoint.GeoAutoShapeType.geoShapeRectangle,loc,1,1);
sp.Select();
sp.Delete();
sp2=null;
}
catch(Exception)
{
}
select_change_busy=false;
}
}