After performing an objRoute.Calculate method on a Control embedded in my VB form, the visual of the route is displayed along with the Directions pane. I have not been able to find a way to either prevent the directions pane from appearing or to close it programmitcally.
Is either possible?
I tried the Directions.Expanded=geoFalse with no luck.
Thanks
John Meyer
08-24-2002, 07:35 AM
You need to set the ItineraryVisible property to False.
Anonymous
09-09-2002, 10:33 AM
I'm working on a Freight Analysis program using MapPoint embedded in a VB app and I want to use the objRoute.Calculate, objRoute.Distance methods to determine the distance between 2 warehouses using major highways, but I don't want to see anything visually. Is it possible ??
I tried the LockWindow / UnlockWindow idea from another posting and
that did not work. objMap.Distance returns a distance to me without
messing visually with the map, but it only gives me "as the crow-flies" distances.
Thanks,
LES
John Meyer
09-09-2002, 01:26 PM
How about having a second MapPoint Control (MappointControl2) on the form that is not visible. Get your location object for the two warehouses, caculate the route and do what you need to do with the result. Your first Control will not be effected visually.
Anonymous
09-11-2002, 01:12 PM
That was one of my attempts. I can't remember the exact err.description, but it blows. I even tried making it visible and just setting its Z-order to place it exactly behind my main MapPointControl, but to no avail. I don't know if it's related, but I have noticed when I run my VB app with a mp control and run MapPoint, the real .exe simulatneously, that they can occassionally draw on each other's map ??
Another down fall of trying the second control is another instance of Mappoint.exe, the ActiveX control gets kicked off, consuming even more memory.
Thanks for the try,
LES