Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

using object and component in same project

This is a discussion on using object and component in same project within the MapPoint Desktop 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 ...

  1. #1
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    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.

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. mappoint component ....!!!!
    By zaaboulla in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-04-2005, 09:28 AM
  2. Cannot create ActiveX component.
    By miman in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-14-2005, 02:46 PM
  3. MapPoint ActiveX Component
    By lazarus in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 03-26-2004, 03:51 PM
  4. Writing a new COM component for MapPoint2002
    By tanguy_laverdure in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-04-2003, 03:03 AM
  5. route object to drawing object
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-09-2003, 11:29 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96