I have a form containing a textbox and a button. The textbox has code in the Validating and Validated events. The validation code is only called if the textbox gains focus so that the Leave event fires. I want the text box validation to fire if the button is clicked and the textbox never had focus. Is there a way to do this?
Thanks