Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No focus
Message
From
06/02/2002 13:16:17
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
05/02/2002 12:31:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00615541
Message ID:
00616184
Views:
26
>>>Hi All,
>>> I have a text box control that is supposed to get focus when the page comes up. However it immediately loses focus. The focus goes to the next control. Has anyone ever encountered this before?
>>
>>Hey Winn,
>>
>>Many, many times... Usually it has to do with the textbox not being enabled at the time the focus is being set (check refreshes, etc). Also, there could be code in a page Activate that is throwing it around. I have to run at the moment, but when I get back if you haven't resolved it I'll search through my threads and see if I can find this. I have many, many posts regarding this from back a few months ago. Maybe a PUTM can jump in in the meantime. Oh, also check if you are setting the focus from a valid or click and then have code that runs after it. It can get confused there too.
>>
>>Renoir
>
>Renoir,
> Actually I SETFOCUS() in the page activate.


Yeah, me too, but if the object isn't enabled at the time the activate fires then it will not stay there and move on to the next one in the order.

Renoir
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform