O'Reilly logo

ArcGIS By Example by Hussein Nasser

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding the restaurants viewer button

In this section, we will add an ArcMap button to the project. We will add logic to this button so that if the user clicks on it, it will display a form. This form will be the restaurants viewer form where all restaurants searches are conducted.

Adding the button

We will now add a button to our project; a button in extending ArcObjects is known as a command. To add the command, follow these steps:

  1. If necessary, 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.
  2. Go to File, then click on Open Project, browse to the Bestaurants ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required