>>Is there anyway to tell if a textbox object is off the form when the form is resized? And can I scroll the form to the textbox that received focus?
>>
>>- jim durkin
>
>Jim,
>
>The top property (or left) will be greater than the height (or width) of the form.
And you can set form.scrollbars = 3 (or another appropriate value) you will be able to scroll the form. Or you can automate the form scrolling to that textbox with
form.SetViewPort(nLeft, nTop)
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