Creating the Visual Interface

We will want our control to resemble the old ADO Data Control. This includes four navigation buttons and a caption area. When we open the designer we see a blank drawing area. We are going to put four command buttons on the control, but first look at the Properties window. There is no BorderStyle property. We want our control to be able to have some kind of border. The solution is to use a panel control, a container control used to group other controls. Conveniently it has a BorderStyle property. Drop a panel control onto the UserControl. Next, find the Dock property of the panel control. The Dock property allows a control to be parked against one or all of the inner borders of the container. For you VB 6 programmers, ...

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.