>I would like to use the VFP6 form Scrollbar property to make my form scrollable. However, it doesn't work as I expected.
>
>I have a sample form with textboxes in view and textboxes below but out of view. The ScrollBar property is on and the Vertical scrollbars are visible. I can use my mouse to scroll to the textboxes that are out of view, but how can I make the form scroll when tabbing to the different objects.
>
>I'm looking for the functionality that a browser gives you when tabbing around a web page.
>
>Can this be done with a VFP6 form?
>
>Thanks,
>
>Jerryt
Jerry, use form.SetViewPort method in textbox.LostFocus(), for example:
thisform.SetViewPort(1, 250)
- scrolls the form down so it's visible top corresponds the vertical position 250.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison