456 Part IV Database and Web Programming
- Click the Start Debugging button on the Standard toolbar.
The ADO Faculty Form program runs in the IDE. The text box object is loaded with the
first Last Name record in the database (Abercrombie), and a navigation toolbar with
several buttons and controls appears at the top of the form, as shown in the following
screen shot:
The navigation toolbar is a helpful feature in the Visual Studio 2010 database programming
tools. From left to right, it contains Move First and Move Previous buttons; a current
position indicator; and Move Next, Move Last, Add New, Delete, and Save Data buttons.
You can change or delete these toolbar buttons by setting the Items property for the
binding navigator object in the Properties window, which displays a visual tool called the
Items Collection Editor. You can also enable or disable individual toolbar buttons.
- Click the Move Next button to scroll to the second faculty name in the dataset.
The Pais record appears.
- Continue scrolling through the dataset one record at a time. As you scroll through the
list of names, notice that the position indicator keeps track of where you are in the list
of records. - Click the Move First and Move Last buttons to move to the first and last records of the
dataset, respectively. - Delete the last record from the dataset (Skinner) by clicking the Delete button when
the record is visible.