m60
08-21-2009, 05:35 PM
Ok so i dint see this posted any where and its nice haveing hacks u make locked to where only people you want useing can use it.
Make sure your login screen is Form1
Ok this sint hard, Also you need to know some basic code for this (not hard at all)
Ok first is you need 2 txt boxes 2 buttons and 2 labels.
Name them:
Labes --
Name one "username" and Outher "password"
Buttons -- name one "Login" other "leave"
Ok time to work. Ok now to make it easy make sure Textbox 1 is the username one (as in put TextBox1 next to the Lable "username")
Now after you have each textbox next to there label duble click the "leave" button.
Now write or copy-n-past this --
Me.hide
To have it say somethign to the person after clicking the button put this B4 it --
Msgbox ("Your Msg here")
Now time for the login button. Duble click it and type this or CnP it --
If TextBox1.Text = "Username goes here" Then
If TextBox2.Text = "Password goes here" Then
form2.show
Me.hide
MsgBox "Your Welcome msg here"
End if
End if
And there you go. Now if you want multipl login names and passwords just do the same but after the first ones "End If" (The last one)
And there you have it, yuo have a login screen. Now if you want the Password to be in "***" chars you need to click textbox1 and on the Bottom left corner look for "password char" enter any symble or letter you want there and anything typed in it while be that.
Well i hope this helped any one who needed it, and also i hope you liked it. I may post a webrower but from what i say there where alot. So ya have fun with this.
P.S.
If you get the need to post this on any other site make sure to give me credits for it.
Make sure your login screen is Form1
Ok this sint hard, Also you need to know some basic code for this (not hard at all)
Ok first is you need 2 txt boxes 2 buttons and 2 labels.
Name them:
Labes --
Name one "username" and Outher "password"
Buttons -- name one "Login" other "leave"
Ok time to work. Ok now to make it easy make sure Textbox 1 is the username one (as in put TextBox1 next to the Lable "username")
Now after you have each textbox next to there label duble click the "leave" button.
Now write or copy-n-past this --
Me.hide
To have it say somethign to the person after clicking the button put this B4 it --
Msgbox ("Your Msg here")
Now time for the login button. Duble click it and type this or CnP it --
If TextBox1.Text = "Username goes here" Then
If TextBox2.Text = "Password goes here" Then
form2.show
Me.hide
MsgBox "Your Welcome msg here"
End if
End if
And there you go. Now if you want multipl login names and passwords just do the same but after the first ones "End If" (The last one)
And there you have it, yuo have a login screen. Now if you want the Password to be in "***" chars you need to click textbox1 and on the Bottom left corner look for "password char" enter any symble or letter you want there and anything typed in it while be that.
Well i hope this helped any one who needed it, and also i hope you liked it. I may post a webrower but from what i say there where alot. So ya have fun with this.
P.S.
If you get the need to post this on any other site make sure to give me credits for it.