I am starting to convert from V2 to 3 of desktop )-:
Are there any examples for V3.0 to do all of the following menu items ? In particular Map.CurrentExtent = Map.FullExtent
Regards
Ewan
The following code is from V2
Select Case e.Button.ToolTipText
Case "Track Zoom In"
mapToolBar.Buttons(0).Pushed = True
Map.Mode = ModeType.TrackZoomIn
Exit Select
Case "Zoom In"
Map.ZoomIn(40)
Exit Select
Case "Zoom Out"
Map.ZoomOut(40)
Exit Select
Case "Full Extent"
Map.CurrentExtent = Map.FullExtent
Exit Select
Case "Toggle Extent"
Map.ToggleMapExtents()
Exit Select
Case "Previous Extent"
Map.GetPreviousExtent()
Exit Select
Case "Pan"
mapToolBar.Buttons(8).Pushed = True
Map.Mode = ModeType.Pan
Exit Select
Case "Pan Left"
Map.Pan(PanDirection.Left, 20)
Exit Select
Case "Pan Right"
Map.Pan(PanDirection.Right, 20)
Exit Select
Case "Pan Up"
Map.Pan(PanDirection.Up, 20)
Exit Select
Case "Pan Down"
Map.Pan(PanDirection.Down, 20)
Exit Select
Case "Print Preview"
Dim PrintPreview As New PrintPreviewDialog()
Map.PrintDocument.DefaultPageSettings.Landscape = True
PrintPreview.Document = Map.PrintDocument
PrintPreview.ShowDialog()
Exit Select
Case "Open Map"
end select