General information
Category:
Forms & Form designer
>Create a property called LastControlToHaveFocus on the form .In the lost focus event of the form save the control # or name to this property. In the gotfocus or activate event read this value and set the focus to that control. The property would be initialized with the control that would have the intial focus when the form was first started.
>
>Ain't oop just great.
>
>>During the use of a formset I would like to be able to return to the same control the user was at on form1 when exiting form2 and going back to form1. Without saving the control name from form1 to a public variable, I cannot see how to get VFP to return to the same control. I am wondering if there is a good way to do this, or if I should just return to a particular specified control no matter where the user was when he left form1. I would prefer not to create a public variable.
Thanks. I appreciate the help and I'll try it.
P. Bailey
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only