Creating the Project

Shall we begin? Start by closing any open projects or solutions. Create a project. When prompted, select Windows Control Library. Name the project DataControl. This will create a Windows Control Library project with a default UserControl class called UserControl1.vb. Select UserControl1.vb in the Project window and open the code view. Notice that the control is just a class that inherits from windows.forms.UserControl. Change the programmatic name of the class to ucDataNav for data navigator. Do this by simply overtyping UserControl1 with ucDataNav right in the source code. To be consistent let’s also change the source code file name to match. Do this right in the Project window. Note two things: Changing the name in the ...

Get ADO.NET Programming in Visual Basic™ .NET 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.