Community of MapPoint and Virtual Earth 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 ...
| |||||||
| Today's Posts | Twitter Feed | 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 |
![]() |
| Tags |
| 2003, activex, control, mappoint 2002, net, studio, visual |
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 |
Menorca Holiday
Enjoy a Menorca holiday at a great rate when booked through UlookUbook!