Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

460 Part IV Database and Web Programming


Visual Studio displays the properties typically associated with data access for a masked
text box object. Your Properties window looks similar to the following:

The noteworthy bound property here is the Text property, which has been set to
FacultyBindingSource – Business Phone as a result of the drag-and-drop operation.
(Note that the tiny database icon does not appear here; it appears only in the Text
property at the bottom of the alphabetical list of properties .) In addition, if you click
the arrow in the Text property now, you’ll see a representation of the masked text box
object. (This useful visual display allows you to quickly change the data source that the
control is bound to, but don’t adjust that setting now .)


  1. Click the form to close any open Properties window panels.

  2. Click the Start Debugging button to run the program.


Visual Studio runs the program in the IDE. After a moment, the two database fields
are loaded into the text box and masked text box objects, as shown in the following
screen shot:
Free download pdf