Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This.setfocus not setting focus
Message
From
19/01/2000 09:24:42
 
 
To
19/01/2000 08:49:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00319809
Message ID:
00319841
Views:
12
Hi Paul.

>>The focus, instead, remains on the command1, whose click event is fired by this code. Any idea of why it performs this way, and how I can get the focus where I want it?<<

it probably behaves this way because Command1 is the next object in the tab order on the form. Change your code like so to keep focus on the textbox:
if nKeyCode = 13
  this.parent.command1.click()
  NODEFAULT
Endif
Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform