Hello,
Just put causevalidation at true for all of page in the tabcontrol. In the event validating of each page put the code who check if all conditions is ok.
Example :
Private Sub TabPage1_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles TabPage1.Validating
If text1.text = "" And text2.text = "" Then
e.Cancel = True
End If
End Sub
i hope that will help you
Exarkuun
|