Community of VE/MapPoint Users and Developers
This is a discussion on MapPoint 2006 ActiveX with new Form within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi there, same probleme again. I included the MapPoint Control 13.0 in a Visual Studio Project, made a Button on ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| same probleme again. I included the MapPoint Control 13.0 in a Visual Studio Project, made a Button on my Form and did this: Form myForm = new Form(); AxMappointControl mapPoint = new AxMappointControl(); myForm.Controls.Add(mapPoint); mapPoint.NewMap(MapPoint.GeoMapRegion.geoMapEurope ); myForm.Show(); On Line mapPoint.NewMap(...) i get System.Windows.Forms.AxHost+InvalidActiveXStateExc eption if i try this: Form myForm = new Form(); myForm.Show(); AxMappointControl mapPoint = new AxMappointControl(); myForm.Controls.Add(mapPoint); mapPoint.NewMap(MapPoint.GeoMapRegion.geoMapEurope ); everything works fine Where is the probleme? |
| |||
| Re: MapPoint 2006 ActiveX with new Form
Hi there, no, i won't write "I got the solution, thanks, bye". The problem was that the activeX wasn't completly initialized, in which way ever the show method of the form called the EndInit() Method of the ActiveX and made the usage afterwards possible. Solution: Just call it yourself. Form myForm = new Form(); AxMappointControl mapPoint = new AxMappointControl(); myForm.Controls.Add(mapPoint); mapPoint.EndInit(); // <- That's the way mapPoint.NewMap(MapPoint.GeoMapRegion.geoMapEurope ); myForm.Show(); Sry for my bad and irritating english, i'm german an not quite used to write or talk in english. Hope this helps some of you. Give me some hinds if the problem was totally clear and i'm just dumb ^^ |
![]() |
| Tags |
| activex, form, mappoint 2006 |
| ||||
| Posted By | For | Type | Date | |
| gmane.comp.gis.mappoint | This thread | Refback | 06-02-2008 05:53 PM | |
| Gmane -- Mail To News And Back Again | This thread | Refback | 01-19-2008 12:04 PM | |
| MapPoint Download - MP2K Magazine | This thread | Refback | 08-09-2007 09:23 PM | |
| Working With Excel and MapPoint - MP2K Magazine | This thread | Refback | 08-02-2007 03:23 AM | |
| MapPoint Forums | This thread | Refback | 08-01-2007 10:35 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MapPoint 2006 with ActiveX | jasanite | MapPoint 2006/2009 Discussion | 4 | 08-10-2007 11:05 AM |
| VC++ doesn't find MapPoint 2006 ActiveX control | DrNobody | MapPoint 2006/2009 Discussion | 3 | 02-22-2007 10:41 AM |
| Mappoint 2006 ActiveX Questions | ben_dillon | MapPoint 2006/2009 Discussion | 3 | 01-31-2007 07:16 AM |
| Mappoint and Access with ActiveX On A Form | jpateusa | MapPoint 2006/2009 Discussion | 4 | 01-30-2007 11:19 PM |
| mapPoint 2006 activex control slow down form closing | bule | MapPoint 2006/2009 Discussion | 1 | 09-26-2006 02:22 PM |