Trying to make an exit button for a mappoint/VB.net appbut the code:Brings up a MS error report window. The code works fine if I write and run it in VB6, but apparently I need to do it in .net and disabling error reporting isn't really a valid solution!!Code:Dim objmap As MapPoint.Map objmap = AxMappointControl1.ActiveMap objmap.SaveAs("C:\Documents and Settings\Dave\My Documents\map.ptm", MapPoint.GeoSaveFormat.geoFormatMap, False) objmap.Saved = True End
I know its nothing to do with the saving cos it does it with just the end command. Do i need to close the map somehow prior to exiting the program?
any help greatly appreciated