Hi!
Do you have a class variable declared for route? (private GMapRoute route;)
Your line " GMapRoute route = new GMapRoute(new List<PointLatLng>(), "Route");" in the form_load event should be probably changed to:
"route = new GMapRoute(new List<PointLatLng>(), "Route");" because otherwise your route exists only in the scope of the load event...
I would need more or the entire code, to pinpoint the problem.
Do you have a class variable declared for route? (private GMapRoute route;)
Your line " GMapRoute route = new GMapRoute(new List<PointLatLng>(), "Route");" in the form_load event should be probably changed to:
"route = new GMapRoute(new List<PointLatLng>(), "Route");" because otherwise your route exists only in the scope of the load event...
I would need more or the entire code, to pinpoint the problem.