Community of VE/MapPoint Users and Developers
This is a discussion on using object and component in same project within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, There seems to be a problem (maybe it is myself) in C# if I try to use both the ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| using object and component in same project There seems to be a problem (maybe it is myself) in C# if I try to use both the component and try to create a mappoint object in code. It seems that the component loads another type library, and there is no ApplicationClass anymore. Someone knows how to use both at same time ? If this is not possible then another approach is to create a mappoint component on the fly. But I tryed this but have InvalidActiveXState exception when I try to open a map with it.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet Last edited by Wilfried; 08-12-2006 at 05:40 AM. |
| |||
|
Hi, The invalid activeX state is because the mappoint component needs an owner. It is solvend by: Code: using (AxMapPoint.AxMappointControl mp = new AxMapPoint.AxMappointControl()) {
Controls.Add(mp);
mp.Visible = false;
// Here it is availabel for some invisible work
}
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| component, object, project |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mappoint component ....!!!! | zaaboulla | MapPoint 2006/2009 Discussion | 1 | 07-04-2005 09:28 AM |
| Cannot create ActiveX component. | miman | MapPoint 2006/2009 Discussion | 1 | 02-14-2005 02:46 PM |
| MapPoint ActiveX Component | lazarus | MapPoint 2006/2009 Discussion | 4 | 03-26-2004 03:51 PM |
| Writing a new COM component for MapPoint2002 | tanguy_laverdure | MapPoint 2006/2009 Discussion | 0 | 12-04-2003 03:03 AM |
| route object to drawing object | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-09-2003 11:29 PM |