Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select first field on a page
Message
From
03/08/1999 18:59:52
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00249484
Message ID:
00249490
Views:
23
Try putting the following code in your activate event.
for i = 1 to This.ControlCount
   if This.Controls(i).TabIndex = 1
      This.Controls(i).SetFocus()
      Exit
   endif
endfor
Not sure how to go about it for a single page, but I know that the entire pageframe control can be subclassed.

>I have a form which has about 5 tabbed pages.
>I'd like to be able to start at page on, and when the last field is entered on page 1, go automatically to the forst fiels on page 2 etc...
>
>Anybody got any experience of doing this.
>
>
>One other thing.... I'm finding that I would like to set my own base classes up for Pages within a Page frame.. but I cant seem to be able to sub class the foxpro basec class fro a page.
>
>Any help appreciated.
>
>regards
>
>Gerard
--Todd Sherman
-Wake Up! Smell the Coffee!
Previous
Reply
Map
View

Click here to load this message in the networking platform