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

ActiveX Control

This is a discussion on ActiveX Control within the MapPoint Desktop Discussion forums, part of the Map Forums category; Ok, I have a VB project with several forms that have the mappoint activex control embedded on them... problem is ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    ActiveX Control

    Ok, I have a VB project with several forms that have the mappoint activex control embedded on them... problem is that it's not guaranteed that the users of my app will have mappoint installed on the pc... I know that I can determine if mappoint is installed by looking in the registry but that doesn't help the fact that if it's not installed then I will get a run time error cause the object is on serveral forms...

    Any ideas of how to get around this?

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Do your check for mappoint either in a splash screen or sub main.

  3. #3
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    Can you add or remove the control from the forms at run-time?
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  4. #4
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Sure, this code will add the MapPoint control to form1. (You still need to have the Control added to your project.)

    'General Declarations Section
    Dim WithEvents MPC As MappointControl

    Private Sub Command1_Click()

    Set MPC = Controls.Add("Mappoint.Control.9", "MappointControl1", Form1)

    MPC.Move 1, 1, Form1.Width - 100, Form1.Height - 100
    MPC.Visible = True
    Set objMap = MPC.NewMap(geoMapNorthAmerica)

    End Sub

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Re: Keyboard control in mappoint activex control
    By djcapslock in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-10-2005, 10:16 AM
  2. Getting [SelectedArea] from an ActiveX control
    By Bug in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-19-2004, 10:43 AM
  3. I am trying to build an activeX control using Map....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-24-2001, 05:05 PM
  4. I am using the MapPoint ActiveX control in a VB Ap....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-24-2001, 06:35 AM
  5. How does one get the activeX mappoint control to d....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-25-2001, 06:26 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