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.