CloseMap method
Closes the current map file, leaving the Control without an open map.
Applies to
Objects: MappointControl
Syntax
object.CloseMap
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a MappointControl object. |
Remarks
Do not call the CloseMap method within a Visual Basic For Each...Next statement on any MapPoint collection; it will invalidate the statement.
Example
'Assume the MappointControl on your form is named "MappointControl1"
Private Sub cmdCloseMap_Click()
MappointControl1.CloseMap
End Sub