View Single Post

  #3 (permalink)  
Old 02-19-2008
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,017
Re: Need to close then open MapPoint COM Object

Hi,

This will create a new activeX control:

Code:
AxMapPoint.AxMappointControl mp;

mp = new AxMapPoint.AxMappointControl();
Controls.Add(mp);
mp.Visible = false;
mp.OpenMap(fileName);
This will remove and destroy it. The mappoint.exe is removed in task manager:

Code:
Controls.Remove(mp);
mp.Dispose();
Reply With Quote