Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

How to close window containing route details after using Calculate method ?

This is a discussion on How to close window containing route details after using Calculate method ? within the MapPoint Desktop Discussion forums, part of the Map Forums category; I use next code for calculate distance and drive duration between two points (code is from MSDN) Dim objApp As ...

  1. #1
    azorgnairelau is offline Junior Member White Belt
    Join Date
    Oct 2007
    Posts
    11

    How to close window containing route details after using Calculate method ?

    I use next code for calculate distance and drive duration between two points
    (code is from MSDN) Dim objApp As New MapPoint.Application
    Dim objMap As MapPoint.Map
    Dim objRoute As MapPoint.Route

    'Set up the application
    Set objMap = objApp.ActiveMap
    Set objRoute = objMap.ActiveRoute
    objApp.Visible = True
    objApp.UserControl = True

    'Add route stops and calculate the route
    objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)
    objRoute.Waypoints.Add objMap.FindResults("Redmond, WA").Item(1)
    objRoute.Calculate

    End Sub

    Does anybody know how to close the window containing details about the route ? which is the code that can do that ?.
    Last edited by azorgnairelau; 11-28-2007 at 10:40 AM.

  2. #2
    John.Sewell is offline Member Yellow Belt
    Join Date
    Oct 2007
    Posts
    42

    Re: How to close window containing route details after using Calculate method ?

    This maybe what you want....
    gobjApp.ItineraryVisible = False

  3. #3
    azorgnairelau is offline Junior Member White Belt
    Join Date
    Oct 2007
    Posts
    11

    Re: How to close window containing route details after using Calculate method ?

    Thank-you very much . It work very good now .

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Calculate Method
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-11-2005, 02:20 PM
  2. Calculate route
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 03-16-2005, 01:42 PM
  3. How do I calculate a route distance without displaying route
    By spideybud in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 09-09-2003, 11:14 AM
  4. Calculate route
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-03-2003, 03:25 AM
  5. objRoute.Calculate method displays directions pane....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-26-2002, 02:52 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87