Solved

Mappoint coding

Posted on 2011-02-12
8
721 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

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.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

778 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