Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6SP5 - SetFocus to the first user control text, butt
Message
 
To
22/05/2003 11:57:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00790342
Message ID:
00792057
Views:
126
You mean that I should do the code in the init(), but the code in itself is it okay?

>Bhavdhuti,
>
>To me, it makes more sense to loop through the controls one time when the form initializes, and store a reference to the object with the lowest tabIndex into a custom property of the form. Then, to set focus, all you do is:
>
>
>thisform.oFirstControl.setfocus()  && hypothetical form property...
>
>
>>Here is my version. Note the STEP -1 and Conditional check in PageFrame only if there are no controls on the form.
>>
>< snip >
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform