Solved

Mappoint coding

Posted on 2011-02-12
8
712 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now