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

MapPoint Control created dynamically

This is a discussion on MapPoint Control created dynamically within the MapPoint Desktop Discussion forums, part of the Map Forums category; the following fails dim mp as MappointControl set mp = CreateObject( "MapPoint.Control 0.9" ) error: ActiveX component can't create object ...

  1. #1
    gkelly is offline Junior Member White Belt
    Join Date
    Nov 2002
    Posts
    1

    MapPoint Control created dynamically

    the following fails

    dim mp as MappointControl

    set mp = CreateObject( "MapPoint.Control 0.9" )
    error: ActiveX component can't create object

    set mp = CreateObject( "MapPoint.Control" )
    error: Type Mismatch

    Is there a way to create a Mappoint object without placing it on a form?

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    If you don't need the ActiveX Control on the form why not just use Automation?

    Most of the samples in the help file are using that method, not the MapPoint ActiveX Control.

    Consider this sample from the help file: "OpenMap method (Application)"

    Sub OpenSampleMap()

    Dim objApp As New MapPoint.Application

    'Set up application
    objApp.Visible = True
    objApp.UserControl = True

    'Open a sample map
    objApp.OpenMap objApp.Path + "\Samples\Clients.ptm"

    End Sub

    If you don't need to see the map to do what you are doing, set the objApp.Visible = False

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I am new to MapPoint and have created a push pin m....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 12-28-2010, 03:03 PM
  2. Can Streets and Trips open maps created with MapPoint?
    By alwasl8 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-17-2005, 04:48 PM
  3. Re: Keyboard control in mappoint activex control
    By djcapslock in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-10-2005, 10:16 AM
  4. Dynamically updating a map point without refreshing in Web
    By Anonymous in forum Bing Maps and MapPoint Web Service
    Replies: 0
    Last Post: 07-23-2004, 12:22 PM
  5. Can MP2K link with SQL 7.0 data dynamically?....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-02-1999, 11:48 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