<%@ Page %>
Developing Data Navigation Control (VCR) For Windows Forms
Under windows forms data bound forms are very common. Many forms have buttons for data navigation such as next, previous, last and first. Such navigation control is commonly called as VCR control as it resembles VCR buttons. This sample code shows how to develop such a VCR custom control that you can use in your projects.
The source code contains two files:
- VCRControl.vb that represents VCR custom control
- Form1.vb that represents sample client for VCR control
The VCR custom control exposes a property called DataSource that needs to be set to CurrencyManager class of your form. Once that is done you can use navigation buttons to navigate through records. The control also shows current record in the form of "x of y".
Following image shows VCR navigation control in action
is a software consultant, trainer, author and spiritual yoga mentor having 23+ years of experience in software development. He teaches online training courses
in ASP.NET Core, Angular, and Design Patterns to individuals and small groups. He is a published author and has authored or co-authored books for Apress and Wrox press. Having embraced the Yoga way of life he also teaches Ajapa Yoga
to interested individuals. To know more about him click here
Get connected : Twitter Facebook