Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6SP5 - SetFocus to the first user control text, butt
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00790342
Message ID:
00790989
Views:
23
Yes I have not been able to explain better. I just want to setfocus() but I want a generic routine to find out the first user usable object firstly on the form itself and if not found on the page1 of the pfg. But automated not hardcoding. I want to call something like this:
thisform.SetFocusToFirstObject()
and lo presto it should be done <g>.


>I may not have understood you right - if you have a textbox or other control just on the form then setting it's tabindex to 1 will ensure that it receives focus when the form is shown. Otherwise if the control is on the pageframe you will need something like this in the init of the form...
>
>
>THISFORM.PAGEFRAME.PAGE1.TEXTBOX.SETFOCUS()
>
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