Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cmb Valid & Unshrinkable forms
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00288669
Message ID:
00294055
Views:
29
>Thread denizens,
>
>I have two issues at the moment.
>
>It appears that the combo box valid event does not always fire when the style is set to drop down list. I would like to force the user to enter a value in the combo box before clicking the add button. Is there an easy way to do this other than programmatically enabling and disabling assorted controls? The lost focus event wont let you set focus back to the calling control. Other ideas?
Hans,

You certainly can use the lostfocus event to setfocus back to the same control.
* Lostfocus event
IF SomeCondition
   This.SetFocus()
   NODEFAULT  &&Critical to getting it to work
ENDIF
You must issue a NODEFAULT to stop fox from doing its default of moving focus after you have set it elsewhere.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform