Toolbars property
Returns the Toolbars collection. For the For the MapPoint Control, a map must be open. Read-only.
Applies to
Objects: Application, MappointControl
Syntax
object.Toolbars
Parameters
Part | Description |
---|---|
object | Required. An expression that returns an Application or MappointControl object. |
Remarks
To open a map in the Control, use the NewMap method to open a map based on a template or the OpenMap method to open an existing .ptm file.
Example
Sub FirstToolbarName()
Dim objApp As New MapPoint.Application
'Set up application
objApp.Visible = True
objApp.UserControl = True
'Use the Toolbars property to get the name of the first toolbar
MsgBox "The first toolbar is the " _
+ objApp.Toolbars.Item(1).Name + " toolbar."
End Sub