Book Image

ArcGIS By Example

By : Hussein Nasser
Book Image

ArcGIS By Example

By: Hussein Nasser

Overview of this book

Table of Contents (17 chapters)
ArcGIS By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding the restaurants mapping toolbar


The thing I like about extending ArcObjects is the flexibility. You will notice how open this approach is when you start working with it more closely in the coming pages. The toolbar here is actually a class, which we have to add to the project. To add the toolbar, follow these steps:

  1. Open Visual Studio Express in administrator mode; we need to do this since our project is actually writing to the registry this time, so it needs administrator permissions. To do that, right-click on Visual Studio and click on Run as administrator, as shown in the following screenshot:

  2. Go to File, then click on Open Project, browse to the Bestaurants project from the C:\ArcGISByExample\bestaurants\Code, and click on Open.

  3. Click on the Bestaurants project from Solution Explorer to activate it.

  4. From the Project menu, click on Add Class.

  5. Expand the ArcGIS node and then click on the Extending ArcObjects node.

  6. Select Base Toolbar and name it tbBestaurants.vb, as illustrated in the...