I have a windows form where I have many textboxes. Some of these textboxes
have code in the validating and validated events.
I setted the casuses validation property on the Close & Cancel botton to
false, so the events do not trigger if the either botton is clicked. But it
is not working as I supposed it would. The validating and validated events
are executing.
I would like to stop any events from controls when the user clicks on the
Close or Cancel botton.
Any suggestions would be appreciated.
Thanks
|