Community of VE/MapPoint Users and Developers
This is a discussion on MapPoint control and MDI form within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am using C# 2005 with the MapPoint control from MapPoint 2006. I have 2 forms in a MDI container. ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| MapPoint control and MDI form have 2 forms in a MDI container. The sequence I go through is to put the MapPoint control on Form1. On the load of the app I show Form1 in the MDI container. Then on click I show Form2 (notice I do not hide Form1). I then click a button on Form2 to show Form1. When Form1 was shown the first time it asked me to save it (which was undesireable behavior) so I put this code in the Form1_Deactivate method: axMap.ActiveMap.Saved = true; Now when I go back to Form1 the control is empty and worse yet the ActiveMap == null. How did the control decide to unload my map? How do I get around this? Any help, links, or pointers appreciated. |
| |||
| Re: MapPoint control and MDI form
Hi, I dont know direct what is wrong, but it should work. I have a few applications where I create new instances of a form with a mappoint control on it, and show them in parallel.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: MapPoint control and MDI form
Hi, No, in C# I use SourceForge.net: DockPanel Suite from weifenluo. In Delphi I have MDI forms. All created forms has a control on it at design time.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: MapPoint control and MDI form Quote:
Was this useful? |
| |||
| Re: MapPoint control and MDI form Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: MapPoint control and MDI form Quote:
|
| |||
| Re: MapPoint control and MDI form
Hi, No I do not have that problem. Very wierd...
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| control, form, mappoint, mdi |
| ||||
| Posted By | For | Type | Date | |
| Working With Excel and MapPoint - MP2K Magazine | This thread | Refback | 03-29-2007 06:21 AM | |
| Programming MapPoint in .NET - MP2K Magazine | This thread | Refback | 03-25-2007 08:27 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mapPoint 2006 activex control slow down form closing | bule | MapPoint 2006/2009 Discussion | 1 | 09-26-2006 02:22 PM |
| the map is empty after Show/Hide form with MapPoint control | Anonymous | MapPoint 2006/2009 Discussion | 1 | 03-25-2004 04:24 PM |
| Alignment of the control on my form | blackmap | MapPoint 2006/2009 Discussion | 2 | 09-25-2003 02:43 AM |
| MapPoint Control align in Form | blackmap | MapPoint 2006/2009 Discussion | 0 | 02-06-2003 11:26 AM |
| MapPoint OCX control does not work on a .Net MDI form. | clackclack | MapPoint 2006/2009 Discussion | 5 | 12-06-2002 12:17 AM |