Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement