FullMapName property

Returns the path and name of MapPoint Control's current map file. Returns an empty string if the map is a template, opened with the NewMap method on the MappointControl object, that has not been saved. Read-only String.

Applies to

Objects:  MappointControl

Syntax

object.FullMapName

Parameters

Part Description
object Required. An expression that returns a MappointControl object.

Remarks

The FullMapName property is equivalent to the FullName property on the Map object, which is not available when running as an embedded control.

To save a map with the MapPoint Control, use the SaveMap or SaveMapAs method on the MappointControl object.

Example

  
      Sub Form_Load()
    Dim strPath as String
    'Assume the default installation Path
    strPath = "C:\Program Files\Microsoft MapPoint\Samples\"
    MappointControl1.OpenMap strPath & "Clients.ptm"
    MsgBox MappointControl1.FullMapName
  End Sub
  

Note  This sample code contains data that is specific for use in MapPoint North America; it is for illustration purposes only.