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 2 of 2

How I can Disable the summary of map when I Draw a Route

This is a discussion on How I can Disable the summary of map when I Draw a Route within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi All, I m using Mappoint with C#.I want to disabel the summary of the map when I draw a ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    How I can Disable the summary of map when I Draw a Route

    Hi All,

    I m using Mappoint with C#.I want to disabel the summary of the map when I draw a route.Also I want to display this summary on a button click.
    How can I implement this in C#.

    Thanxx

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Hi,

    To hide the summary of your route just use
    the ItineraryVisible property in your MapPointControl

    Code:
    MapPointControl1.ItineraryVisible = False

    If you create a button, the code is

    Code:
    MapPointControl1.ItineraryVisible = True
    You have this example in the Mappoint Help file
    I think it is not hard to translate in c#


    Code:
    Sub HideItinerary()
    
      Dim objApp As New MapPoint.Application
      Dim objMap As MapPoint.Map
      Dim objRoute As MapPoint.Route
    
      'Configure l'application
      Set objMap = objApp.ActiveMap
      Set objRoute = objMap.ActiveRoute
      objApp.Visible = True
      objApp.UserControl = True
    
      'Ajoute deux étapes et calcule un itinéraire
      objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)
      objRoute.Waypoints.Add objMap.FindResults("Redmond, WA").Item(1)
      objRoute.Calculate
    
      'Masque maintenant l'itinéraire qui était apparu automatiquement ci-dessus
      objApp.ItineraryVisible = False
    
      End Sub
    Mohamed

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to draw behind the map (C++) & disable Busy server (
    By Laurent in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 06-22-2006, 02:12 PM
  2. Delete Numerator from waypoints when i draw a route
    By Genamo in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-23-2006, 04:18 AM
  3. summary to access form help please
    By nmilne in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 01-15-2006, 04:22 PM
  4. Draw a route between two LONGS LATS
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-16-2005, 10:08 AM
  5. to draw my own map
    By rushang in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-23-2005, 11:55 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