Could you give more information please. Are you saying that the LOSTFOCUS does not execute if a checkbox is checked, or if the form is closed? Are you trying to set the focus back to the containter or to a control within the container?
GeneS
>I am trying to create my own custom controls using both the Control and Container object. I am using the LostFocus event to validate my custom control by setting the focus back into the control if it is not valid. This almost works, but like usual VFP has to spoil things. Checkboxes can still be checked outside of my control and the Form can be closed even if the data is invalid.
>
>Does anyone have a sure solution to the VALIDATION OF A CONTROL OR CONTAINER?????
>
>
>TIA,
>Peter
>
>btw, my control is a date picker control.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only