Community of VE/MapPoint Users and Developers
This is a discussion on Selecting and deleting the push pin within the MapPoint 2006/2009 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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Selecting and deleting the push pin 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 |
| |||
|
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)
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| deleting, pin, push, selecting |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Selecting cities in drivetime | Anonymous | MapPoint 2006/2009 Discussion | 5 | 02-02-2005 05:21 PM |
| Selecting Shape Based on Name | Anonymous | MapPoint 2006/2009 Discussion | 1 | 09-07-2004 11:01 AM |
| New map (Deleting) | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-21-2004 04:21 AM |
| Programatically selecting the Pan or Select tool? | Anonymous | MapPoint 2006/2009 Discussion | 2 | 06-28-2004 08:42 AM |
| Selecting pushpins within a shape | Anonymous | MapPoint 2006/2009 Discussion | 1 | 09-26-2002 09:11 AM |