An ADO .NET Windows Form Program

Now it’s time to create a simple database form. There are two ways to accomplish this: use the data form wizard or build it ourselves. Using the wizard is quick but we wouldn’t learn anything. As you will learn, when you begin the build, a Windows form is considerably more complex than the console application.

VB 6—In VB 6 the easiest way to create a data form without using wizards was by using the ADO Data Control. You could drop this on a form and by setting a few properties you could gain access to your database. Then you could drop some data-bound controls on the form, set the DataSource and DataField properties and you were done. You didn’t have to write any code. The Data Control handled all the details ...

Get ADO.NET Programming in Visual Basic™ .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.