I am using C# 2005 with the MapPoint control from MapPoint 2006. I
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.