hey every one
happy Halloween ^__^
i'm trying to make a log in system but i have a small problem
the problem is i want the user name to be not Sensitive to the capital letter and small letter e.x if the user name is ari and password is IT
i can write ari as any way like : Ari , ARi , ArI but the password must be it
here is my code :
Public Class Form1
Dim user As String = "ari"
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = user And TextBox2.Text = "IT" Then
MessageBox.Show("ok")
Else
MessageBox.Show("wrong password")
End If
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged
End Sub
End Class
thanks ...ari~