Tool-tips with Pushpins

T

taylorkand

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!

Thanks,
Kyle
 
G

Gilles Kohl [MVP]

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)
 
T

taylorkand

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)

Thanks, I'll check into that and see how it goes!

Kyle
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top