Hello everyone,
I am not a professional at vb.net so help me out. I have made a small program and a want to add a serial control to it.... here is my code....
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "12345" And TextBox2.Text = "12345" And TextBox3.Text = "12345" And TextBox4.Text = "12345" And TextBox5.Text = "12345" And TextBox6.Text = "12345" Then
Form2.Show()
Me.Hide()
Else
MsgBox("Incorrect Serial Number")
End If
End Sub
End Class
Now, that code is all fine, but every time i open up my program, it asks me for a serial... how do i make it "if the correct serial is typed in once, then the serialization window will never pop up again"? It would also be a great help if the text boxes had a limit of 5 characters, and when the 5 characters are typed, it would go to the next text box....