I am facing a issue while using the "validating" event of the maskedtextbox. I have an MDI form, in which there is a main form and another form acting as bottom bar. The bottom bar comprises of buttons for moving to "previous" and "next" forms. If suppose in the main form i have a maskedtextbox and the initial focus is set on it, then on the click event of the button (next; which is on the bottom bar form), it calls the validating event of the maskedtextbox twice. In the validating event of the maskedtextbox, i am checking some validations and if it doesnt pass, then i set [e.cancel = true].
Could anyone just let me know the reason behind the triggering of "Validating" event twice?
Thanks in advance Ranjith