G
Guest
I have code in Validating events of my textboxes w/c do usual validation and e.Cancel = True when applicable. My problem is with the Cancel button (w/c has CausesValidation = False). If I close the form inside the Cancel button code (i.e., Me.Close), the Validating events of the textboxes fire, preventing the user from closing the form. I can think of many workarounds for this (such as introduce a form-level flag var) but I was hoping for a simpler solution. Thanks in advance =)