General information
Category:
Forms & Form designer
>I have a pageframe having some controls in it. The pageframe is my top level control in the form.
>
>By default, Visual FoxPro is focusing on the pageframe at run time when entering the form.
>
>I would like to have my focus on the first control of page 1 without having to write some code. I tried PageFrame.TabStop=.F. but that doesn't help to put my focus on object #1 in the tab order of my page 1 controls. I tried putting PageFrame.TabIndex to 0 but it is the same as 1.
Michel, I had a similar problem and used THISFORM.PAGEFRAME.PAGENAME.CONTROL.SETFOCUS in the activate method of the form, and it set the focus to the control on the 1st page of the pageframe.
Previous
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