jeudi 2 juin 2016

multiple textboxes one If statement.. Vb.net

Hi I want to know if I can check textbox1 textbox2 and textbox3 for null or empty string as one? I have the following exmple I tryed myself but i get an error

            If String.IsNullOrEmpty(TextBox1.Text) Or (TextBox2.Text) Or (TextBox3.Text) Then
'somthing
            Else
    'somthing else
        EndIf

Aucun commentaire:

Enregistrer un commentaire