Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter-key won't advance to next textbox, but tab-key wil
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00194219
Message ID:
00194722
Views:
16
>Craig - well I found my event-key cause.
>
>When I'd moved some code from Form.activate to Form.init one of the lines was a cmdbutton.setfocus()
>
>For whatever reason that then changed the behavior of the enter-key when in textboxes. Don't know where to start with the reasoning, suppose I'd have to look at the order of instantiation in the form.init, maybe the object I was setting focus to didn't exist at that time???
>
>Once again, thanks for taking the time to comment.

I've seen other people say that putting cmdbutton.setfocus in their form's init caused that cmdbutton to become the form's default button, which would cause pressing Enter to fire the button. There you go.

Rich.
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform