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

[VB6 + MP2K] : how to know that...

This is a discussion on [VB6 + MP2K] : how to know that... within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello, I've made a VB6 application which opens a new map. I read into a database datas. For each new ...

  1. #1
    Vincent BENNER's Avatar
    Vincent BENNER is offline Member Yellow Belt
    Join Date
    Sep 2002
    Posts
    44

    [VB6 + MP2K] : how to know that...

    Hello,

    I've made a VB6 application which opens a new map.

    I read into a database datas.

    For each new record, I had a pushpin on the map and
    add the name of the pushin into a ComboBox.

    On the right of the combo, I made a command button
    which allow to the user to display quiclky the item selected
    into the combo.

    What I'd like to know is the opposite : I'd like to display
    into the combo the name of the pushpin I click ?

    Is this possible ?

    Regards,

    Vincent BENNER

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Yes it is possible.

    In the selection change event you need to test to see if the selected item is a pushpin.

    Code:
    If TypeOf objmap.Selection Is Pushpin Then
    'Do Something
    End if

  3. #3
    Vincent BENNER's Avatar
    Vincent BENNER is offline Member Yellow Belt
    Join Date
    Sep 2002
    Posts
    44

    It works nearly...

    Dear John,

    The event is the right one. However, I can't
    succeed to know the name of the pushpin...

    I've tried

    Code:
    pNewSelection.Name
    and other things...

    Why I can't success ?

    Regards,

    Vincent BENNER

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [VB6 + MP2K] : how to compare 2 locations ???
    By Vincent BENNER in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-12-2003, 02:52 AM
  2. [VB6 + MP2K] : How to know that... I found the solution !
    By Vincent BENNER in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-21-2003, 05:18 AM
  3. [VB6 + MP2K] How to calculate distance between...
    By Vincent BENNER in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-19-2003, 12:59 PM
  4. With MP2K does anyone know how to programatically ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-29-2002, 07:19 AM
  5. MP2K Object Library
    By JPeters in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-23-2002, 10:30 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