Use a PageLayoutControl as an overview window


PurposeThis application contains two PageLayoutControls. The Browse dialog box allows users to search and select map documents that are validated and loaded into the main PageLayoutControl, thus triggering the OnPageLayoutReplaced event. The OnPageLayoutReplaced event determines the MxPath property of the main PageLayoutControl and uses it to load the same document into the second PageLayoutControl with the LoadMxFile method.

The OnExtentUpdated event is triggered when a user zooms in on the main PageLayoutControl. The event uses the AddElement method to add an element displaying the visible extent of the main PageLayoutControl on the second PageLayoutControl. Any previous elements on the second PageLayoutControl are found using the FindElementByName method and are deleted from the GraphicsContainer. The Refresh method is used to refresh the graphics to reflect the changes.

Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView
ArcEditor
ArcInfo

How to use

See Using the samples for help on compiling, setting up the debugger, and running the sample (either an exe or dll).

  1. Click the Load button and browse to a map document to load into the PageLayoutControl.
  2. Click to zoom in and right-click to pan the main PageLayoutControl. View the visible extent on the other PageLayoutControl.

AssemblyInfo.cs Assembly information.
Overview.cs Form file.
Download the C# files
AssemblyInfo.vb Assembly information.
Overview.vb Form file.
Download the VB.NET files

Download the files for all languages

See Also:

PageLayoutControl class
IPageLayoutControl interface