Jump to content

Recommended Posts

Posted (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 by thoga31
GeSHi; movido para quadro apropriado
  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.