>I built a new control. The control is a container that contains a textbox and a button. The idea is that the button will popup a window of choices and return a value into the textbox. (I know that the same thing can be accomplished with a dropdown combo but there is a reason for what I'm wanting to do here.)
>
>However, I want the textbox to be validated before leaving the container. Initially I tried doing the validation in the LostFocus of the container but that appears to be too late. For instance, clicking on a button allows the click event to fire even if LostFocus determines that the value of the textbox is invalid.
>
>Using the valid of the textbox doesn't work because I want the user to be able to tab out of the textbox onto the control's button to be able to perform the lookup even if the text in the textbox is not valid.
>
>So, I need a Valid method on my container that fires BEFORE the container looses focus.
>
>How can I accomplish this?
>
>Thanks so much for your help!
>
>Rodd
Read Thread #
974182