Duplicate double-clicking State name in code?

OOT
05-08-2008, 09:25 AM
I've been searching the forums and googling this but I can't find a way to do this. When you are running MapPoint 2006 (that's the one I have), if you double-click on a State name it zooms to that State. It's not always perfect (some states don't all fit in the window). But that state is kind of "selected" and the others are dimmed out a little.

Is there any way to duplicate this in code?

Thanks in advance for any idea's/suggestions/hints/etc. It is very much appreciated.

Wilfried
05-09-2008, 03:38 AM
Hi,

I'm not sure if this can be done. What you can try is to find the Location object and set the Highlight property to true. You have to check first if this can be done by checking the IsHighLightable property.

To find the Location object you can use FindPlaceResults (or maybe also FindAddressResults) and then step trough the Results collection.

 
Web mp2kmag.com
mapforums.com