Applying user interface customizations at startup


PurposeIt is unsafe to make user interface customizations before the ArcGIS application framework has fully initialized. This sample shows you how to use IApplicationStatusEvents and IApplicationStatus inside a custom extension to monitor the framework's state and properly apply interface customizations when the extension loads.

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. Open and compile the solution in Visual Studio.
  2. Start ArcMap.
  3. Click Customize and click Extensions.
  4. Turn on the ACME extension. The ACME menu appears on the main menu bar.
  5. Turning off the extension removes the ACME menu.

AcmeExt.cs The sample extension.
Download the C# files
AcmeExt.vb The sample extension.
Download the VB.NET files

Download the files for all languages

See Also:

Creating an application extension




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