On Wed, 19 Mar 2008 13:10:15 -0700 (PDT),
ta********@gmail.com wrote:
>I am working on a map display which is linked to a database containing
information on our trucks. I.E. Lat/Long, Customer, Truck number,
Product, etc... I have a form with mappoint control and can get the
map to display with many Mappoint pushpins at the locations of our
trucks. What I am trying to do it set up tool-tips messages on the
pushpins showing information from our database. However I can't
figure out how to add a tool-tip to a pushpin. Please HELP!
I'm working in C sharp, but suggestions in any language would be
great!
There's no tooltip functionality for MapPoint pushpins AFAIK, but you could
set the "Note" property, e.g. like so:
MapPoint.Location location =
axMappointControl1.ActiveMap.GetLocation(47,-122, 0);
MapPoint.Pushpin thePin =
axMappointControl1.ActiveMap.AddPushpin(location, "My pushpin");
thePin.Note = "This is a pushpin note";
thePin.BalloonState = MapPoint.GeoBalloonState.geoDisplayBalloon;
Regards,
Gilles [MVP].
(Please reply to the group, not via email.
Find my MVP profile with past articles / downloads here:
http://www.gilleskohl.de/mvpprofile.htm)