General information
Category:
Forms & Form designer
Title:
How to set pocus to a tabless page
I must rely too much on the framework :}
How do you set focus to page 2 of a pageframe that has Tab = .F. at the click of a command button?
This does not work:
Thisform.pageframe1.page2.SetFocus()
If tabs are prsent it works. I also tried setting focus to the first control in page2 but that doesn't work either. Neither does adding Thisform.Refresh().
TIA,
Alex
BTW, it works if I say:
Thisform.Lockscreen = .T.
Thisform.pageframe1.Tabs = .T.
Thisform.pageframe.page2.Setfocus()
Thisform.pageframe1.Tabs = .F.
Thisform.Lockscreen = .F.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only