MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




using object and component in same project

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-12-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
using object and component in same project

Hi,

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.

Last edited by Wilfried; 08-12-2006 at 05:40 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 08-19-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
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
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
component, object, project


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 12:14 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54