Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ENTER (if you dare!!!)
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01161171
Message ID:
01161202
Views:
17
Tommy,

I just created a form, put 3 textboxes on it and then a grid. In the first textbox this code works as you want:
LPARAMETERS nKeyCode, nShiftAltCtrl

if nKeyCode = 13
   nodefault
   thisform.grid1.SetFocus()
endif
>I added that, with the same results. When I press the Enter key when in the txtDrugFilter textbox, the grdProfile blinks and the focus is regained in the txtbox.
>
>Let me go check the behavior of the form in general to be sure there is not some code there causing this behavior.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform