don't delete pushpin

sdonta
03-03-2005, 12:46 PM
Iam using VB6. I want user not able to delete a pushpin with delete key. There is no keypress event on MapControl. Does any one know how to do this?

Thanks

Wilfried
03-03-2005, 12:57 PM
Hi,

I think the most easy approacht is to prohibit the user that he can select the pushpin.Something like this should work for you, You can do it in SelectionChange for example:

if (MP.ActiveMap.Selection is Pushpin)
unSelectPushPin(MP.ActiveMap.Selection);


Of course other approach may be possible too, but this looks a simple one, and I'm a simple person liking simple solution :)

 
Web mp2kmag.com
mapforums.com