In the program below, button 2's click event doesn'tfireif you open a dialog box in button 1's validating event. Well, I thought it would fire because that was how it's supposed to work.
Valid = False Else If m Check Type = Check Byte And CType(Me. Text, Integer) Dim err Provider As New Error Provider ' Verify that this field is not blank. Well if we name the controls correctly we could check against any control we like based on their name, this allows us to group controls for specific validation tasks. Controls If Type Of ctrl Is Text Box Then 'check if it should be string If ctrl. Starts With("txt String") Then 'check if its valid value If ctrl. Show("Invalid Input") Exit Sub End If 'check if it should be numeric Else If ctrl. Starts With("txt Int") Then 'validate that it is numeric If Not Is Numeric(ctrl.