O'Reilly logo

ADO.NET Programming in Visual Basic™ .NET by Bob Howell, Steve Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required