Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Mappoint coding

Posted on 2011-02-12
8
Medium Priority
?
731 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
8 Comments
 
LVL 9

Accepted Solution

by:
xav056 earned 2000 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
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

 

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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

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.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Six Sigma Control Plans
Starting up a Project

715 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