Zoom In Tool

Last Modified:8/15/2002

This sample illustrates the making of a tool that works like the Zoom In tool shipping with ArcMap. This tool zooms in to an extent no less than one-millionth of the dataframe's extent.

How to use:
  1. Open the sample, and compile it to make ZoomInTool.dll/ZoomInSample.dll.
  2. In the Customize dialog, click on 'Add from file' and select this dll.
  3. Under the Commands tab, select the Zoom In command from the Developer Samples category, and drag it on to a toolbar. Dismiss the Customize dialog.
  4. Click on the tool, and start using it.


Difficulty: Intermediate

Visual Basic Visual C++ C# Visual Basic.NET
File Description
clsZoomIn.cls Class file that implements the COM Server.
frmResources.frm VB Form file holding resources used within project.
ZoomInTool.vbp VB Project File for sample.
ZoomInTool.dll Compiled project DLL.

Key CoClasses: Envelope, Map, NewEnvelopeFeedback, Point, ScreenDisplay
Key Interfaces: IActiveView, IEnvelope, IPoint, IScreenDisplay, INewEnvelopeFeedback