How can i adjust the preferred arrival and departure time of a waypoint??? I'm working with C#.
I tried several options:
way = ActiveMap.ActiveRoute.Waypoints.Add(pin,name);
way.PreferredArrival = preferredarrivalarray[i];
Doesn't work, it says "Access denied"
ActiveMap.ActiveRoute.Waypoints[i].PreferredArrival = preferredarrivalarray[i];
Also doesnt work now it says:
"Property, indexer, or event 'this' is not supported by the language; try directly calling accessor method 'MapPoint.Waypoints.get_Item(ref object)"
ActiveMap.ActiveRoute.Waypoints.get_Item(This expects an object but wath object????? )
Can anyone help?