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 Microsoft Visual Basic For Each...Next statement on any MapPoint collection; it will invalidate the statement.

Example

  [Visual Basic 6.0]
'Assume the MappointControl on your form is named "MappointControl1" Private Sub cmdCloseMap_Click() MappointControl1.CloseMap End Sub
[C#]
//Assume the MappointControl on your form is named "MPC"
private void CloseMap_Click(object sender, System.EventArgs e) { MPC.CloseMap(); }