Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Mappoint coding

Posted on 2011-02-12
8
Medium Priority
?
735 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 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Loops Section Overview

886 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