How to Make a Form that Has a Scroll Bar that Scrolls RecordsID: Q136339 The information in this article applies to:
SUMMARYBy placing a container in a grid and placing that grid on a form, you can create a form that has a scroll bar that scrolls through the records of a table. The scroll bar on the grid will be used to scroll the records. Also, by setting certain properties of the grid, you can make it appear as though the scroll bar belongs to the form instead of the grid. This article describes the process.
MORE INFORMATION
Step-by-Step ExampleThis example uses the Testdata database in the Visual FoxPro Samples\Data directory. 1. Type the following command in the Command window to create a container 2. In Properties window, set the following properties:
3. Add four text boxes to the container, and set their properties as
4. On the File menu, click Close, and save the changes.
5. Type the following command in the Command window to open the Testdata 6. On the View menu, click Data Environment, and then click Add. Select the
7. Click the grid control on the Form Controls toolbar, and then click the
8. In the Properties window, select Column1 in the Object list. Set the
9. With the Column1 object still selected in the Properties window, click
10. In the Properties window, select Column1, and set the following
11. On the File menu, click Save. Then click Run Form on the Form menu. Now
Additional reference words: 3.00 VFoxWin
KBCategory: kbtool kbui
KBSubcategory: FxtoolFormdes
|
Last Reviewed: September 10, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |