Visual Basic 2008 Tutorial - Cool Password Formhttp://www.youtube.com/watch?v=sRkix12dkfM&fmt=18 The code: Button1.Text = TextBox1.Text is not important that just makes the button have the same text as you write in the textbox ;) CODE: Public Class Form1 Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged Button1.Text = TextBox1.Text If TextBox1.Text = "the password" Then Button1.Enabled = True Else Button1.Enabled = False End If End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form2.Show() End Sub End Class code pour embarquer la vidéo : >>> http://www.youtube.com/embed/sRkix12dkfM <<< |