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.
Start Visual Studio, open the solution file, then build the project.
Start ArcMap and add some data.
Click the Customize menu and click Customize Mode. The Customize dialog box appears.
Click the Commands tab on the Customize dialog box, find Brushing from Custom Graph Controls, then drag the Brushing tool from the commands to any toolbar in ArcMap. Close the Customize dialog box.
Draw a graphic object (for example, a rectangle) using the Draw tool on the Draw toolbar.
Select the Brushing tool and slowly drag the graphic across the features. You will see features that are overlapping with the graphic get selected while you drag.
To further explore the data, you can add a graph based on the feature. The selected items in the graph update as the graphic is being dragged across the feature.
The Brushing tool is intended to be used for a small dataset. If your dataset is large, the dynamic update is slow. For the best results in using this tool, slowly drag the graphic across the feature to see the dynamic update between the map and graph.