Community of VE/MapPoint Users and Developers
This is a discussion on MapPoint 2002 ActiveX control and Visual Studio .NET 2003 within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I am trying to do something very simple. I embeded the active-x control in a windows form and in ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| MapPoint 2002 ActiveX control and Visual Studio .NET 2003 I am trying to do something very simple. I embeded the active-x control in a windows form and in the form's Load event I have the following code: I added the MapPoint Control 9.0 private void Form1_Load(object sender, System.EventArgs e) { this.axMappointControl1.NewMap("C:\\New North American Map.ptt"); } I get the following error: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in axinterop.mappoint.dll Additional information: This method or property is not implemented. Unhandled Exception: The program '[3960] AssetTracker.exe' has exited with code 0 (0x0). System.Runtime.InteropServices.COMException (0x8000FFFF): This method or property is not implemented. at MapPoint.IMappointCtrl.NewMap(Object Template) at AxMapPoint.AxMappointControl.NewMap(Object template) at AssetTracker.Form1.Form1_Load(Object sender, EventArgs e) .... What have I done wrong? I seems to me that most other people have got beyond this point. Have I not followed some setup sets? Thanks for any insight... Chulaka |
| |||
|
Firstly let me apologise cos I hate C and may therefore be on the wrong track, but in VB you have to declare the map object before you attempt to open it : Code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim objmap As MapPoint.Map
Me.AxMappointControl1.NewMap("C:\Documents and Settings\Dave\My Documents\map.ptm")
End Sub
M |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| tutorial mappoint in VB6.0 visual studio | lucci56 | MapPoint 2006/2009 Discussion | 1 | 07-14-2006 08:06 AM |
| Control of MapPoint 2002 using Visual Basic .Net | DogsWorld | MapPoint 2006/2009 Discussion | 1 | 02-26-2004 10:53 PM |
| Accessing Mappoint 2002 via Visual Studio .NET 2003 | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-14-2003 11:01 AM |
| Visual Studio C# MP2002 Control creation | Anonymous | MapPoint 2006/2009 Discussion | 1 | 12-05-2002 08:32 PM |
| I am using Mappoint 2002 ActiveX control in a VB a.... | Anonymous | MapPoint 2006/2009 Discussion | 2 | 06-14-2002 07:10 AM |
Flights to Funchal
Magnificent Madeira provides panoramic views for you. See for yourself and book cheap flights to the capital, Funchal.
Travel Counsellors
Travel Counsellors are an award winning Travel Agent. Have a personal Travel Counsellor help with your travel plans.
Thailand Holiday
A Thailand Holiday has much to offer with historic culture, lively arts, beautiful beaches, a good nightlife, friendly and hospitable people and one of the best cuisines in the world.
Holidays to Barbados
Holidays to Barbados have so much to offer. Enjoy the beauty of this Caribbean island for less by booking your holiday through us.
Cheap Turkey Holidays
The best time of year to sneak in cheap Turkey holidays is during the off-peak season. Check out the great deals available during April, May or October. For other tips on how to bag a great value holiday simply check online at ulookubook.com
Compare holiday prices
Compare holiday prices online where you can see all the possibilities at Travel.co.uk
Cheap Portugal Holidays
Hotels of all ratings! Find information on cheap Portugal holidays at On The Beach!