Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

VS 2010 Problem with the Login that i made please help

$
0
0
Read what typed (red text) inside the code....
so please help me with the code i dont know what i did worng
its not telling me that there is a warning or error..


Code...
========
Code:

Public Class Login
    Dim Username As String
    Dim Password As String
    Dim DoSomething As String

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        Form2.Show()
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Close()
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
      i made that if the porsen will type the Username Dax and the Password 12345 its will open form2 and will close only the form1 = login
        Username = TextBox1.Text
        Password = TextBox2.Text
        If (Username = "Dax" & Password = "12345") Then
            Form2.Show()
            Close()
        ElseIf Not (Username = "Dax" & Password = "12345") Then and here how you can see its will see if its typed right if not its will made a label and will be typed that the username or the password.....
but its looks like its not cheaking if its right or not its just typing the label...

            Label3.Text = "The username or the password not right.!"
        End If

    End Sub
End Class

the Table...
==========
Attachment 98451


so if you can please help me because i trying to lurn from my mistakes
and because i only starting with this codes.....
Attached Images
 

Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>