david1995 Posted May 30, 2015 at 04:32 PM Report #583981 Posted May 30, 2015 at 04:32 PM (edited) Ola eu ando a fazer um trabalho para a escola estou num curso de programacao e decidi criar um jogo da memoria mas primeiro queria fazer um registo e depois o login, mas estou a ter uns bugs por exemplos queria fazer o registo e quando as palavras pass coincidicem aparecias uma messagebox a dizer login com sucesso e se as palavras pass n coincidissem aparecia um erro alguem me consegue ajudar? o meu codigo e este Public Class Registo Private Sub TextBox1_TextChanged(sender As System.Object, e As System.EventArgs) Handles TextBox1.TextChanged End Sub Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Login.Show() End Sub Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click My.Settings.Nome = TextBox2.Text My.Settings.Password = TextBox1.Text My.Settings.Save() Form1.Show() Me.Hide() End Sub Private Sub Registo_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles Button3.Click Me.Close() End Sub Private Sub TextBox3_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox3.TextChanged If Not TextBox3.Text = TextBox1.Text Then Label3.Text = "As Palavras-Pass não correspondem" Else Label3.Text = "" End If End Sub Private Sub GroupBox1_Enter(sender As System.Object, e As System.EventArgs) Handles GroupBox1.Enter End Sub End Class Edited May 30, 2015 at 08:45 PM by thoga31 GeSHi; movido para quadro apropriado
Cerzedelo Posted June 1, 2015 at 07:41 AM Report #584026 Posted June 1, 2015 at 07:41 AM Sem indicar quais os bugs que tem, dificilmente alguém o irá ajudar.
Muryllo Posted June 14, 2015 at 02:55 AM Report #584774 Posted June 14, 2015 at 02:55 AM Boas david1995, Mas utilizas base de dados sql para conferir os dados ? Abraços.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now