View Single Post

  #2 (permalink)  
Old 03-03-2006
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Hi,

I just tryed exacly the same (check my code eventually), and it display's all pushpins currently on the map:

Code:
    object o = 1;
    MapPoint.DataSet ds = mp.ActiveMap.DataSets.get_Item(ref o);
    Recordset rs = ds.QueryAllRecords();
    rs.MoveFirst();
    while (!rs.EOF) {
        Location loc = rs.Pushpin.Location;
        Console.WriteLine(rs.Pushpin.Name.ToString());
        Console.WriteLine(loc.Name); // both are the same
        rs.MoveNext();
    }
Showing a messagebox non modal should give the same result.
Reply With Quote