<%@ 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 an independent software consultant and trainer by profession specializing in Microsoft web development technologies. Having embraced the Yoga way of life he is also a meditation teacher and spiritual guide to his students. He is a prolific author and writes regularly about software development and yoga on his websites. He is programming, meditating, writing, and teaching for over 27 years. To know more about his ASP.NET online courses go here
. More details about his Ajapa Japa and Shambhavi Mudra online course are available here