First off, add two labels, two text boxes, and one button. Place them as you want, and make one label say "Username:" and the other one "Password:"
Make the button say "Log In".
Here's what I did (remove the space after the first h):
h ttp://i39.tinypic.com/j6h1mf.jpg
Now, Double click the button, and insert this code:
Dim usrValid As Integer Dim pswdValid As Integer usrValid = False pswdValid = False If TextBox1.Text = "(Your username here)" Then usrValid = True If TextBox2.Text = "(Your pass here)" Then pswdValid = True If usrValid = True And pswdValid = True Then (name of your form).Show() Me.Close()
And that's it! Hope it Helps!


Sign In
Create Account

Back to top









