I saw a thread regarding the toolstripbutton not causing a validation. The user asked if there was a way to force it to do so. The thread remains unanswered so I thought I would revive it.
this.validate() does not work.
I am nervous about using this control considering this problem. As of now the only control that seems to have a validation problem when used in conjunction with a toolstrip is the DateTimePicker. Unless a user moves the focus from this control to another (non-toolstrip) control in the form, the datetimepicker control doesn't get validated, and if I have a save button on that toolstrip, the value written to the database is the old value. This is a very serious problem. I tested the same scenario with a textbox but that seems to act correctly (writes the changed value to the database). My primary question: is there something different about the datetime picker that is casuing this, or could this problem arise with any control. The user in the thread I mentioned above says it was occuring with a textbox, but just the validation event was not being fire. My impression is that a datetimepicker value, even if you change it, technically does not change until it loses the focus, whereas a textbox value changes immediately. Can anyone confirm this?