Community of VE/MapPoint Users and Developers
This is a discussion on Strange behavior from MapPoint 2004 within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am working on my C# destructor for a window with a MapPoint control, and have found inconsistent behavior when ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Strange behavior from MapPoint 2004 The first code snippet works to suppress the "Save Map" question. The other one, oddly, does not work. This works: axMappointControl2.ActiveMap.Saved = true; axMappointControl2.Dispose(); axMappointControl2 = null; This DOES NOT suppress the "Save Map" question: MapPoint.Map mpMap = axMappointControl2.ActiveMap; mpMap.Saved = true; axMappointControl2.Dispose(); axMappointControl2 = null; Can anyone understand why this is? It create new questions for me which I can not answer about variable and what they are actually referencing. I'd be happy to hear your comments. Bob |
| |||
| Re: Strange behavior from MapPoint 2004
Hi, Are you sure? I just tryed this (MP is the activeX control) in my formClosing event: Code: MP.ActiveMap.Saved = true; Code: MapPoint.Map map = MP.ActiveMap; map.Saved = true;
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| behavior, mappoint 2004, strange |
| ||||
| Posted By | For | Type | Date | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 02-11-2008 08:34 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strange MapPoint exception | BobFromBoston | MapPoint 2006/2009 Discussion | 1 | 02-11-2008 09:03 AM |
| Trying to suppress MapPoint's default behavior | BobFromBoston | MapPoint 2006/2009 Discussion | 1 | 02-04-2006 05:34 AM |
| Strange behaviour with square brackets. | fergdeff | MapPoint 2006/2009 Discussion | 4 | 01-07-2006 04:27 AM |
| GetPictureFromObject returns strange maps | cd4000 | MapPoint 2006/2009 Discussion | 0 | 08-30-2004 07:12 PM |
| ActiveX Control Mouse Behavior | lazarus | MapPoint 2006/2009 Discussion | 0 | 02-24-2004 02:04 PM |