View Single Post

  #1 (permalink)  
Old 11-20-2003
Vincent BENNER's Avatar
Vincent BENNER Vincent BENNER is offline
Member
Yellow Belt
 
Join Date: Sep 2002
Posts: 41
[VB6+MP2K] : how to disable the Itinerary windows ?

Hello,

I'm calculating the Distance (thanks John... I think I was loafer to search... it was into the Help File !) between 2 points :

Code:
    Set objMap = frmMAIN.ctrlMAPPOINT.ActiveMap
    Set objRoute = objMap.ActiveRoute
    objRoute.Waypoints.Add objMap.FindPushpin(frmMAIN.zt1)
    objRoute.Waypoints.Add objMap.FindPushpin(frmMAIN.zt2)
    objRoute.Calculate
    MsgBox "Length : " + CStr(objRoute.Distance)
    MsgBox "Time   : " + CStr(objRoute.DrivingTime / geoOneMinute)
It works fine !

I clear the objRoute (Clear method) and hide the Itinerary windows but I'd like to disabled completly thsi Itinerary Windows !

Is this possible ?

Regards,

Vincent BENNER
Reply With Quote