Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>>>>>When I try to "thisform.mytextbox1.setfocus=.t.",
>>>>>>>I get "setfocus is read only"
>>>>>>>How was I supposed to move the focus to the control of my choice?
>>>>>>
>>>>>>thisform.mytextbox1.setfocus()
>>>>>>This is method!
>>>>>
>>>>>I made the change. But the cursor does not appear in the said textbox ready to start typing.
>>>>
>>>>Try NODEFAULT before thisform.mytextbox1.setfocus() line. BTW what snippet is this?
>>>
>>>On the line b4 it, by itself? I did that but no effect.
>>>As for the snippet not sure what you mean but setfocus() command is in a cmdbutton's click event.
>>
>>Strange. It should work. Maybe mytextbox1.Enabled=.f.?
>
>I have to click in the textbox to put the cursor there.
Do you have any code in the cmdbutton's Valid or LostFocus events? Or in the textbox's GotFocus event?
Précédent
Suivant
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