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

Selecting and deleting the push pin

This is a discussion on Selecting and deleting the push pin within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi friends I want to select a pushping and then want to delete it programmaticaly. I donot know how to ...

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

    Selecting and deleting the push pin

    Hi friends

    I want to select a pushping and then want to delete it programmaticaly.
    I donot know how to capture a selected push pin.

    In fact I m using a pop up menu.I select a pushpin and the right click on it.The I select the delete.
    I want to use this

    objPin.Delete();

    But I donot know how to provide selected pint object to above code.

    Please help...
    Thankss and cheers

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Something like this (from top of my head, not tested):

    PP = Map.FindPushPin(Name);
    PP.Delete();

    if you wants to select it:

    PP.Select();

    if you wants to find a manually selected pushpin:

    if (Map.MapSelection is PushPin)

    or

    PP = MapSelection as PushPin
    if (pp != null)
    if (pp.Name = Name)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Selecting cities in drivetime
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 02-02-2005, 05:21 PM
  2. Selecting Shape Based on Name
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-07-2004, 11:01 AM
  3. New map (Deleting)
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-21-2004, 04:21 AM
  4. Programatically selecting the Pan or Select tool?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-28-2004, 08:42 AM
  5. Selecting pushpins within a shape
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-26-2002, 09:11 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