I have a problem while selecting a shape by code:
shapefile.ShapeSelected[index]=true;
the code executed successfully, but the selection does not appears on map until I hover by mouse on the map.
The shapefile is an in-memory layer (shpefile.Volitile = true;), and shapes added at run time while tracking a car.