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 search textbox in the toolbar

We have learned in the previous chapters how we can add a button and a tool to the toolbar. However, we can actually add more useful control to the toolbar that doesn't exist by default, by extending ArcObjects project in a similar way to a textbox or a dropdown menu. We can add almost any control in windows to the ArcGIS toolbar (as long as it fits of course). Here we will see how to add a textbox and use it to filter the map later. First we will add a new form, add a textbox to it, and resize the form to fit the text. Then we will add a button to the toolbar and replace it with the text control. Follow these steps to do so:

  1. If necessary, open Visual Studio Express in administrator mode.
  2. Go to File, then ...

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