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
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

help me please

This is a discussion on help me please within the MapPoint Desktop Discussion forums, part of the Map Forums category; for a test I created a map with a few pushpins, I named the dataset "toto" and I saved the ...

  1. #11
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    for a test I created a map with a few pushpins, I named the dataset "toto" and I saved the map as "toto.ptm"

    I put the ActiveX control (MappointControl1) on a VB From

    I put this in a command button.

    Code:
    Dim objdataset As MapPointCtl.DataSet
    Set objdataset = MappointControl1.OpenMap("C:\toto.ptm").DataSets("toto")
    It works. Can you try again with a new map (make a test map), try just adding the few lines of code to keep it simple.

  2. #12
    misterb83 is offline Junior Member White Belt
    Join Date
    Feb 2003
    Posts
    10

    it works

    Thank you very much. (sorry for my bad english).

    Your code lines work.

    Nevertheless i have a new question : why my prog doesn't work???? Why must i use the active X with a declaration like dim "variable" as MapPointCtl.something and not dim "variable" as Mappoint.something???,
    What is exactly the difference between these 2 declarations???

    Still thank you for your assistance.

  3. #13
    misterb83 is offline Junior Member White Belt
    Join Date
    Feb 2003
    Posts
    10

    one more question

    What is the difference between the Application object and the MappointControl object? I think i don't understand this.
    thanks a lot.

  4. #14
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    From MSDN

    Using the Control is similar to using the standard MapPoint automation. The Control has methods and properties that are analogous to the Application object and provide access to the objects in the MapPoint object model. For example, you can call the ActiveMap property of the MappointControl object to get the current map, just as you would call the ActiveMap property of the Application object in the MapPoint object model. The Map object that is returned and all child objects that you can access are the same type as the ones in the MapPoint object model. For the most part, code that you write, for example, in a MapPoint COM add-in will work in the Control as well
    View the full page here
    http://msdn.microsoft.com/library/de...intControl.asp

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

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