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 1 of 2 12 LastLast
Results 1 to 10 of 20

mappoint europe 2004 and visual basic 6.0

This is a discussion on mappoint europe 2004 and visual basic 6.0 within the MapPoint Desktop Discussion forums, part of the Map Forums category; I'm using mappoint europe 2004 and i'm trying to let it work alongside visual basic 6.0 In msdn there's this ...

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

    mappoint europe 2004 and visual basic 6.0

    I'm using mappoint europe 2004 and i'm trying to let it work alongside visual basic 6.0
    In msdn there's this line
    "Dim objApp As New MapPoint.Application"
    when I want to use it vb says the following: "User-defined type not defined"
    what am I doing wrong? :s

    greetz

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

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

  4. #4
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    now, my next question is
    I have al sorts of textboxes on my form, but when I type a city in one of them and then click on see map, I want a pushpin on the place of the user-given city...
    can somebody help me out here?

    thx already

  5. #5
    Syd
    Syd is offline Member Yellow Belt
    Join Date
    Aug 2003
    Posts
    42
    try using the findresults function on the ActiveMap. Read the documentation ( last point programming with mappoint ). If you have your references checked, press F1 to get more infos

    Dim objApp As New MapPoint.Application
    Dim objFindResults As MapPoint.FindResults

    'Anwendung einrichten
    objApp.Visible = True
    objApp.UserControl = True

    'Erstes Ergebnis der Suche ausgeben
    Set objFindResults = objApp.ActiveMap.FindResults("Seattle, WA")
    MsgBox "Das erste Element in der Ergebnisliste lautet: " _
    + objFindResults.Item(1).Name


    Greetings,
    Syd

  6. #6
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    i'm working with msdn online help, but the finding is not easy for a man without patience
    thx btw Syd!

  7. #7
    Syd
    Syd is offline Member Yellow Belt
    Join Date
    Aug 2003
    Posts
    42
    Read & try & error or learning by doing

    If you have any questions just ask.

    Greetz,
    Syd

  8. #8
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    ok thx
    the previous code you gave me is fine but it doesn't put any pushpin on my map? i was looking for that online but nothing could help me out of my problem.
    i'm working with a map in visual basic itself and the code is only based on a map outside visual basic...

    greetings from belgium

  9. #9
    Syd
    Syd is offline Member Yellow Belt
    Join Date
    Aug 2003
    Posts
    42
    To add a pushpin on the map, there's a function called "AddPushpin". All you need is a location object, like the one you get from the Findresults-Collection.

    The help file VB reference is very useful.

    First you'll have to search for an address, then you pick one from the findresults-collection, then add the item as pushpin and then make a zoom and that's it Of course you can change the symbol of the pushpin and add some text to the pushpin.note and show it.

    Perhaps you can make a search for mappoint.hlp -> there is also some good advice in it. I still find a lot of things I can put into my application. I'm looking forward to Mappoint 2005 - I hope there's a lot more cool stuff in it then

    Greetings from Germany,
    Syd

  10. #10
    Syd
    Syd is offline Member Yellow Belt
    Join Date
    Aug 2003
    Posts
    42
    Quote Originally Posted by yvdp
    i'm working with a map in visual basic itself and the code is only based on a map outside visual basic...
    Errm - what do you mean? Two maps?

    Greetz,
    Syd

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Query Mappoint Visual Basic 6.0
    By virgilar in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 10-08-2005, 08:54 AM
  2. mappoint, visual c++ vs visual basic
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 03-30-2004, 10:17 PM
  3. Visual Basic. NET and MapPoint
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-30-2003, 03:49 PM
  4. Visual basic or visual c++ in mappoint
    By misterb83 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-14-2003, 09:31 AM
  5. I am using MapPoint 2001 and Visual Basic(6.0). I....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-10-2002, 09:33 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