How To Check If Both Textboxes Are Blank In VB.NET

i had a problem so i found a way to solve it i wanted to share it with you all so if you have two textboxes and if you want to check if both are blank use this code
    'Author : Mohamed Shimran
    'Blog : http://www.ultimateprogrammingtutorials.blogspot.com

   Dim check As Boolean = False
        If TextBox1.Text = TextBox2.Text Then
            check = True
            'you can put some codes here
        Else
            'also here :)
        End If

Post a Comment

Note: Only a member of this blog may post a comment.