Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to Issue SetFocus for First Object on Page
Message
From
03/08/2001 11:05:12
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00539389
Message ID:
00539396
Views:
13
>>I've heard it said that it's not a good practice to issue SetFocus in the Activate of a page. I notice by event tracking that the Activate of a page seems to fire more often than I would expect it to, so I understand why setting focus there might be a bad idea. If I want to explicitly give the focus to a specific control when the page becomes active, where would I do it? Thanks!
>>
>>Regards, Renoir
>
>Renior;
>
>You could use the Init.
>
>Tom

Tom,

Wouldn't that only fire one time? Seems to me that the page Activate should only fire when the page is actually activated via Pageframe.ActivePage or a click on the page, etc. Looks to me like it fires a heck of a lot more often than that.

Renoir
Previous
Reply
Map
View

Click here to load this message in the networking platform