Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set the focus on the next field from a CBOBox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00231568
Message ID:
00232020
Views:
15
>I ma looking for a way to set the focus to the next field after the user selected a entree in a CBOBox.
>
>You cannot to a SEtFocus in the valid of the CBOBox and if the user clic or press enter on one of the item of the cboBox the LostFocus is not ran. So I do not know what is the best week to do this.
>
>I currenly use a timer control that I set enabled to .t. and the timer do the set focus but this is not stable in VFP5.0.
>
>Any help on this?

If you RETURN 1 from the Valid, it should move to the next item in the tab order...that may handle your situation.

I'm not sure why you're Lostfocus isn't working, it should whenever a selection is made...in fact, you shouldn't need either of these, since focus will move to the next control automatically, unless obstructed by other code - but try the Valid idea...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform