Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First control on the page doesn't want to take focus
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01525103
Message ID:
01525129
Views:
38
>Hi everybody,
>
>I have a form with a pageframe with 7 pages. First page has a button with the following code int its click method
>thisform.pageframe1.ActivePage = 2
>
>If I only have this code, when the second page activates, the first control (txtDescription) does not have a focus.
>If I add
>
>thisform.pagedframe1.Page2.txtDescription.SetFocus()
>
>or same in Page.Activate, then the second control (combobox) gets focus.
>
>I believe we did had a similar problem a while back, but I don't recall a resolution (if any). May be instead of trying to set focus I need to do any other trick?
>
>Thanks in advance.

Not clear what is the problem?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform