MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Selecting and deleting the push pin

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-10-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 02-10-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
deleting, pin, push, selecting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 12:32 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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