Solved

Mappoint coding

Posted on 2011-02-12
8
723 Views
Last Modified: 2012-05-11
hI,
  I am new to mappoint. I want to do coding in Mappoint 2006 in winform c# . what i should do. what is required to insatlled. aLSO NEED CODING HELP SO THAT I MAY complete my coding with 7 days.

Thanks in advance
0
Comment
Question by:rnsr
  • 5
8 Comments
 
LVL 9

Accepted Solution

by:
xav056 earned 500 total points
ID: 34880984
you should install mappoint on your development machine as you will need the dlls to that referenced in your project, after you install mappoint create your VS solution and add a reference to the Microsoft.Mappoint dll under the com tab.
Then you can add the mappoint active x control to your windows form where you will be able to program against it

you will have to instantiate your mappoint object as follows (if you are using the northamerican map)
Note that the required dlls will not register if you are installing the European mappoint you should have the northamerican cd to install the dll.
MapPoint.Map objMap;
AxMappointControl1.NewMap(MapPoint.GeoMapRegion.geoMapNorthAmerica);
AxMappointControl1.Units = MapPoint.GeoUnits.geoKm;
objMap = AxMappointControl1.ActiveMap;

the code below is taken from the mappoint forums there is good references there
here is a link
http://www.mapforums.com/development/


// Create a new map
axMappointControl1.NewMap(MapPoint.GeoMapRegion.geoMapNorthAmerica);
 
// Create a new Map object
MapPoint.Map m = axMappointControl1.ActiveMap;

 
// Map location object
MapPoint.Location Loc;

 
// Locate the account based on information given
MapPoint.FindResults findResults = m.FindAddressResults(Address, City, string.Empty, string.Empty, ZipCode, 
MapPoint.GeoCountry.geoCountryUnitedStates);

 
object Index = 1;
 
Loc = findResults.get_Item(ref Index) as MapPoint.Location;

 
// Set the pushpin
MapPoint.Pushpin pin = m.AddPushpin(Loc, Name);
pin.Note = Code + "-" + LineNum;

 
// Set the balloon
pin.BalloonState = MapPoint.GeoBalloonState.geoDisplayBalloon;

 
// Go to the location
Loc.GoTo();

Open in new window

0
 

Author Comment

by:rnsr
ID: 34882192
Thanks . but still i need some more help. I had added MappointControl.ocx thorugh reference.
But still i am not able to put control on my winform.
In tol box i cannot see the control.

Thanks in advance.
0
 

Author Comment

by:rnsr
ID: 34882211
added by selection menu->tools->choose toolboxitms->Mappointcontrol17.0

0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:rnsr
ID: 34903109
Hellow , xav056:
   Plz help me in getting the logitude and latitute of a given address.
Thanks in advance.

0
 

Author Comment

by:rnsr
ID: 34932014
the problem is solved .
Thanks,
0
 

Author Closing Comment

by:rnsr
ID: 34932017
Thanks for providing me the start point of MAPPOINT in c#. still i have other problem which i will post if not solved.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question