Our New ActiveX ADO Data Control in Action

Visual Studio 6.0

Let's run our program; right click on the hostPrj.vbp project in the Project Explorer and select Set As Startup. Then press F5 to run the new control.

Of course, you would want to add additional text boxes for other fields. When the form is loaded, our control looks for each of the controls that are bound to our data control and locks them. Using our control, we have effectively recreated our State Machine that we discussed earlier. The user can't make a mistake. Once our control has all of the bells and whistles we wish to add, then making up a nice human/machine interface - the window between the database and the user - becomes a snap.

Next, let's look at how we package up our control so that we can let other people use it.

© 1998 by Wrox Press. All rights reserved.

Show: