Hi,
someone knows how not to let user delete pushpins
in a .net application using a mappoint COM control?
Thanks.
This is a discussion on disabling deleting pushpin within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, someone knows how not to let user delete pushpins in a .net application using a mappoint COM control? Thanks....
Hi,
someone knows how not to let user delete pushpins
in a .net application using a mappoint COM control?
Thanks.
I haven't done it myself, but have heard of other people who have (try searching these forums and the newsgroup microsoft.public.mappoint), but what they did was:
trap the "OnNewSelection" event (I'm not sure if that is the exact name, you need to find the one that is called when the user is trying to select a new object).
Check the object to see if it is a pushpin. If so, return an error code so that MapPoint doesn't continue with the selection process.
You logic could do a variety of different things, eg. check the pushpin symbol or name, and only disable certain types of pushpins.
Richard
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
There are currently 1 users browsing this thread. (0 members and 1 guests)