Using VB6 and MAP OCX methods
When the map is refreshed we re-draw the pushpins with code below -
Dim objLoc As MapPoint.Location
Set objLoc = mc1.ActiveMap.GetLocation(tb!MapLat, tb!maplon)
mc1.ActiveMap.AddPushpin(objLoc, jobText).BalloonState = geoDisplayBalloon
mc1 is the ocx
The problem is this is simply adding to the existing pins. Is there a quick of removing all existing pushpins before starting the refrsh.
Thanks in advance