Using Windows Controls with DataReaders and Command Objects
Now that you have a handle on the basics of the Connection, Command, and DataReader objects, you can start the Windows Forms project that you'll build for the rest of the day.
To begin, create a new C# or Visual Basic .NET Windows Forms application and call it DataAcess_vb or DataAccess_cs, depending on the language you want to use. I refer to the project as DataAccess.
Follow these steps to create the controls for the default Form1. Figure 10.3 gives you an example of where we're going with this form.
Figure 10.3. Form1 of the DataAccess project.
Follow these steps to create the GUI: ...
Get Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.