Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox setfocus needs to be unset
Message
From
28/01/2005 10:21:03
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
00981705
Message ID:
00981728
Views:
49
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()
>>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform