ocinfo
02-24-2009, 07:36 AM
I'm using the book Programming MapPoint in .Net and I am having some issues getting the code examples to work. An example is what should be a relatively simple thing. Take a location entered into a text box in a windows form app and go to that location on the map.
MapPoint.Map map = axMappointControl1.ActiveMap;
MapPoint.Location currentLocation = null;
MapPoint.FindResults findResults = map.FindResults(id);
currentLocation = findResults.get_Item(ref ????);
currentLocation.GoTo();
The variable "id" is a string containing a location.
What should I be using as the ref object?
I appreciate any help.
MapPoint.Map map = axMappointControl1.ActiveMap;
MapPoint.Location currentLocation = null;
MapPoint.FindResults findResults = map.FindResults(id);
currentLocation = findResults.get_Item(ref ????);
currentLocation.GoTo();
The variable "id" is a string containing a location.
What should I be using as the ref object?
I appreciate any help.