Text View tab


Purpose This sample code shows how to implement a custom tab in ArcCatalog. The tab is created by implementing IGxView and allows ArcCatalog users to view the contents of a text file they are browsing.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Register the CustomGxObject_CS.dll. For more information, see "How to register COM components" in the following "See Also" section in this sample.
  2. Start an ArcCatalog session and browse to a text file (*.txt) in the tree view.
  3. Select the Text tab to view the contents of the file.

FrmTextView.cs Form containing a text box for displaying the contents of the file.
TextView.cs Class implementing IGxView for creating a tab in ArcCatalog.
Download the C# files
FrmTextView.vb Form containing a text box for displaying the contents of the file.
TextView.vb Class implementing IGxView for creating a tab in ArcCatalog.
Download the VB.NET files

Download the files for all languages

See Also:

How to register COM components




Development licensing Deployment licensing
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced