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 3 of 3

Problem instantiating MP Active X control in a VB and VC++

This is a discussion on Problem instantiating MP Active X control in a VB and VC++ within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi... We are getting the following error when trying to instantiate the MP Active X control in either a VB ...

  1. #1
    Brent is offline Junior Member White Belt
    Join Date
    May 2006
    Posts
    2

    Problem instantiating MP Active X control in a VB and VC++

    Hi... We are getting the following error when trying to instantiate the MP Active X control in either a VB or VC++ app:

    "This method or property can only be set at run time, not when designing forms."

    We used the ActiveX test container and instantiated the Microsoft Mappoint control. Using the Control->Invoke Methods menu item, we invoked the OpenMap method by passing the sales.ptm file present in the samples folder of the Mappoint install folder... but get the error above...
    Cheers

    Brent

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

    I do not understeand. If you call Openmap from a menutiem like this:

    Code:
    MP.OpenMap(openFileDialog.InitialDirectory + openFileDialog.FileName);
    then the map opens. Can you shet more light on the problem you have?

  3. #3
    Brent is offline Junior Member White Belt
    Join Date
    May 2006
    Posts
    2

    problem solved

    Thxs Wilfried... we resolved the problem!

    Brent
    Cheers

    Brent

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MapPoint 2004 Active-X control: how to "bump" pus
    By citrix_99301 in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 03-18-2006, 03:50 AM
  2. Mappoint active x control crashes at random points
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 8
    Last Post: 06-14-2005, 04:53 AM
  3. Problem with MapPoint control redraw in Visual c++
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 11-21-2004, 05:04 PM
  4. Mappoint control problem
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-22-2004, 08:39 AM
  5. How to use the mappoint 1.0 active x control from C# ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-22-2004, 07:02 AM

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