nasirgul
04-15-2008, 08:42 PM
Hi,
I cant able to resolve the problem of deleting previous pushpin and get mine visible pushpin only. I tried for deleting PP dataset and then add new one but not able to get control on program. ....please let me help to come out of this problem. Any one who knows C#.... object o = "Pushpins";
Pushpin a =null;
a= axMappointControl1.ActiveMap.AddPushpin(loc, "hi");
try
{
//MapPoint.DataSet Pushpins = axMappointControl1.ActiveMap.DataSets.get_Item(ref o);
MapPoint.Recordset rs = axMappointControl1.ActiveMap.DataSets.get_Item(ref o).QueryAllRecords();
MapPoint.DataSet pushpin = axMappointControl1.ActiveMap.DataSets.AddPushpinSe t("new");
a.Delete();
rs.MoveFirst();
while (!rs.EOF)
{
axMappointControl1.ActiveMap.DataSets.ZoomTo();
rs.Pushpin.MoveTo(pushpin);
rs.MoveNext();
}
}
catch { }
}
I cant able to resolve the problem of deleting previous pushpin and get mine visible pushpin only. I tried for deleting PP dataset and then add new one but not able to get control on program. ....please let me help to come out of this problem. Any one who knows C#.... object o = "Pushpins";
Pushpin a =null;
a= axMappointControl1.ActiveMap.AddPushpin(loc, "hi");
try
{
//MapPoint.DataSet Pushpins = axMappointControl1.ActiveMap.DataSets.get_Item(ref o);
MapPoint.Recordset rs = axMappointControl1.ActiveMap.DataSets.get_Item(ref o).QueryAllRecords();
MapPoint.DataSet pushpin = axMappointControl1.ActiveMap.DataSets.AddPushpinSe t("new");
a.Delete();
rs.MoveFirst();
while (!rs.EOF)
{
axMappointControl1.ActiveMap.DataSets.ZoomTo();
rs.Pushpin.MoveTo(pushpin);
rs.MoveNext();
}
}
catch { }
}