>I have a Combobox and it receives the Focus when the parent page s activated. If I immediately click on a cancel button on the page the Valid for the Combobox does not run. I thought that when an object lost the focus, the Valid method executed. Wrong? Thanks!
>
>Regards, Renoir
This is no direct answer to your question, but if it is for data validaation, you can greatly simplify validation by doing all validation in a central method, called when the user saves a record.
For instance, one problem if you validate the input for each field is that if the user wants to press "Undo", he first has to provide a valid entry in the current field! Quite illogical for the end-user.
Valid() will also not fire if you press a button (e.g., "Save") which is
outside the form - one more reason to do validation only when you save data.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)