Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox setfocus needs to be unset
Message
De
28/01/2005 10:21:03
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Divers
Thread ID:
00981705
Message ID:
00981728
Vues:
48
I put code in the moverlist.lstselect.click and .gotfocus that is
Thisform.ltextbox = .F.

I moved the code over to the valid like you suggested, and that made it so that I had to bring up the task manager to kill my application, becuase the textbox would not release control at all. When the code is in the lostfocus, at least I can click on the exit button and the form will close.
Would another textbox or object help to make this work?

Thanks for all your suggestions and help.
Beth
>I guess THISFORM.ltextbox never gets set to .F.
>>
>> That doesn't work. I still can not get the focus off the textbox.
>>>Beth,
>>>
>>>You should issue NODEFAULT when you want to keep focus only.
>>>
IF THISFORM.ltextbox = .T.
>>>  THISFORM.textbox1.SETFOCUS()
>>>  NODEFAULT
>>>ENDIF
>>>THIS.VALUE = ""
>>>THISFORM.REFRESH()
>>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform