Community of MapPoint and Bing Maps Users and Developers
This is a discussion on Closing Pushpin ballon within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I created one pushpin on the map using c# code, when I tried to close the pushpin ballon, it ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Re: Closing Pushpin ballon Quote:
(i don't understand) Bye, Rinaldo |
| |||
| Re: Closing Pushpin ballon
It's very strange (in my application I can close ballon with mouse). I think that you must verify if you have insert your code in mouse event of ActiveX control? (it's only thing can I think) Bye, Rinaldo |
| |||
| Re: Closing Pushpin ballon Hi Rinaldo, This is the method which I am calling in button click event. and I am unable to close the ballon state. private void FindLocationOnMap() { MapPoint.Location ObjLocation; MapPoint.Pushpin ObjPushpin; ObjLocation = MPC.ActiveMap.GetLocation(Latitude, Longitude, 1); ObjLocation.GoTo (); FindResults AddressResults = MPC.ActiveMap.ObjectsFromPoint(MPC.ActiveMap.Locat ionToX(ObjLocation), MPC.ActiveMap.LocationToY(ObjLocation)); ObjPushpin = MPC.ActiveMap.AddPushpin(ObjLocation, "Find"); int AddressCount = AddressResults.Count; object Key =1; ObjLocation = (MapPoint.Location)AddressResults.get_Item(ref Key); string LocationDetails = ObjLocation.Name.ToString(); ObjPushpin.Name = LocationDetails; ObjPushpin.Note = LocationDetails; ObjPushpin.Symbol = 1; ObjPushpin.BalloonState = GeoBalloonState.geoDisplayBalloon; } |
| |||
| Re: Closing Pushpin ballon
Hi, When the user close the balloon then you display it again. If you want the user close it then don't display it again.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz www.comfortsoftware.be MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Closing Pushpin ballon
Hi Rinaldo and Wilfried, I got the solution for closing pushpin ballon. Actually it is my mistake that I am using mouse_beforeclick event and I am setting e.Cancel=true. Now I changed the code. Thanks for your responses . |
![]() |
| Tags |
| ballon, closing, pushpin |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Closing MapPoint | pepumarius | MapPoint Desktop Discussion | 8 | 08-19-2008 09:24 AM |
| MP2006 - C# - Very SLOW closing map | pcfountain | Development | 1 | 05-22-2007 11:44 AM |
| Disabling closing of MapPoint? | MD2000 | MapPoint Desktop Discussion | 1 | 05-09-2005 04:57 PM |
| Closing Without Saving A territory map | Yazzy | MapPoint Desktop Discussion | 3 | 04-27-2005 02:26 PM |
| Closing without saving | Mudrover | MapPoint Desktop Discussion | 1 | 01-30-2005 07:49 AM |