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
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 ...
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
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
You have this example in the Mappoint Help fileCode:MapPointControl1.ItineraryVisible = True
I think it is not hard to translate in c#
MohamedCode: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
There are currently 1 users browsing this thread. (0 members and 1 guests)