I am having problems figuring out in which order these if and else statements need to be arranged in Visual Basic 2010 Express. As you can probably tell from the code, when it is working properly the program should display data found in a text file externally. If this data is not found then an error message in a label should appear.
Thanks for the help.

Code:

```
   Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim filename As String = "..\..\usernamepassword.txt"
    Dim objreader As New System.IO.StreamReader(filename)
    Dim contents As String
    Dim check As String
    Dim checkfile As New System.IO.StreamReader("..\..\checkfile.txt")
    check = checkfile.ReadToEnd
    For i As Integer = 1 To check
        contents = objreader.ReadLine
        Dim data As New List(Of String)(contents.Split(","))
        If forename.Text = data(2) Then
     'first if statement is here \/
            If surname.Text = data(3) Then
                fullname.Text = (data(2) & " " & data(3))
                dob.Text = data(4)
                phone.Text = data(5)
                address.Text = data(6)
                password.Text = data(1)
           'else statement \/
            Else
                Label2.Text = "Sorry, no result found for this student."
                Label5.Text = "Please note this system is caps sensitive."
            End If
        End If
    Next i
    Dim s As String = ""
    forename.Text = s
    surname.Text = s
End Sub

```

End Class