Advanced Login System

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
12 posts Page 1 of 2
User avatar
Toby64800
New Member
New Member
Posts: 14
Joined: Sat Dec 05, 2009 7:37 pm

Advanced Login System
Toby64800
Hello Today Im Gona Show You How To Make A Advanced Login System:


Form1
Button1 Text: Login
Button2 Text: Sign Up
2 Textboxes

Form2
2 textboxes
Button1 Text: Create Account
Button2 Text: Cancel

Form3
Anything You Wan

Form1 Codes:


Loigin Code:

If My.Computer.FileSystem.DirectoryExists(" C:ACCOUNTS" + TextBox1.Text + "") Then
Dim USERREAD As System.IO.StreamReader = New System.IO.StreamReader("C:ACCOUNTS" + TextBox1.Text + "" + "USERNAME.TXT")
Dim userline As String
Dim PASSREAD As System.IO.StreamReader = New System.IO.StreamReader("C:ACCOUNTS" + TextBox1.Text + "" + "PASSWORD.TXT")
Dim PASSLINE As String
Do
PASSLINE = TextBox2.Text
userline = USERREAD.ReadLine
Console.WriteLine(PASSLINE)
Console.WriteLine(userline)
Loop Until userline Is Nothing

If TextBox2.Text = "" Then
MsgBox("error, PLEASE INPUT A PASSWORD", MsgBoxStyle.Critical)
Else
If PASSLINE = PASSREAD.ReadLine() = True Then
Form3.Show()
End If
End If
Else
MsgBox("THE USERNAME DONT EXIT", MsgBoxStyle.Critical)

End If

Sign Up Button:

Form2.show



Form2 Codes:

Create Account Code:

If TextBox1.Text = "" Then
MsgBox("ERROR,Your Account/Username must have one letter in it!", MsgBoxStyle.Critical)
Else
If TextBox2.Text = "" Then
MsgBox("ERROR,Your Account/Password must have one letter in it!", MsgBoxStyle.Critical)
Else
MkDir("C:ACCOUNTS" + TextBox1.Text)
Dim username As New System.IO.StreamWriter("C:ACCOUNTS" + TextBox1.Text + "" + "username.txt")
username.Write(TextBox1.Text)
username.Close()
Dim password As New System.IO.StreamWriter("C:ACCOUNTS" + TextBox1.Text + "" + "password.txt")
password.Write(TextBox2.Text)
password.Close()
MsgBox("ACCOUNT CREATED", MsgBoxStyle.Information, "ACCOUNT CREATED")

End If
End If

Cancel Button Code:

form2.close
Add Form3
For anything you want



Toby64800
The Code Wasent Made By
Me I Just Post It Here
Cuause There Isent This
Post Here. Have Fun
Building It.
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1891
Joined: Wed Dec 16, 2009 9:56 pm

Re: Advanced Login System
zachman61
this has been posted on here a lot
but
thanks anyway i dont feel like going back so far so Thanked
Last edited by zachman61 on Sun Jul 11, 2010 5:12 pm, edited 1 time in total.
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
ManMega1
VIP - Site Partner
VIP - Site Partner
Posts: 326
Joined: Thu Dec 31, 2009 6:09 pm

Re: Advanced Login System
ManMega1
Yes, and I think I was the first to do it.
Image
Image
Image
Image
Image
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: Advanced Login System
Lewis
I dont realy like login syystem that are flat file but this is great for begginers
Image
User avatar
ben49424
Just Registered
Just Registered
Posts: 5
Joined: Sun Aug 01, 2010 12:05 pm

Re: Advanced Login System
ben49424
I think this is the best login tutorial
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1891
Joined: Wed Dec 16, 2009 9:56 pm

Re: Advanced Login System
zachman61
i think the settings login systems prove to be more useful
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: Advanced Login System
Agust1337
good tut, login systems are good for security :P
You're crazy!
I'm not crazy, my mother had me tested. ~Sheldon Cooper
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: Advanced Login System
Agust1337
good tut, login systems are good for security :P
You're crazy!
I'm not crazy, my mother had me tested. ~Sheldon Cooper
User avatar
un kn0 wn
VIP - Donator
VIP - Donator
Posts: 269
Joined: Mon Mar 29, 2010 6:12 pm

Re: Advanced Login System
un kn0 wn
Nice tut m8 itz small and good.
User avatar
bobboo
New Member
New Member
Posts: 18
Joined: Tue Aug 03, 2010 7:03 pm

Re: Advanced Login System
bobboo
nice tut
itz wonderful for begginers
12 posts Page 1 of 2
Return to “Tutorials”