How To Make A Advanced Login System That Creates Users in visual basic Video

He guys.

Today i gonna show you how to make a advanced login system that creates users

the code:

Login

If TextBox1.Text = "" Then
MsgBox("ERROR,YOU NEED AT LEAST ONE LETTER", MsgBoxStyle.Critical)
Else
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
MsgBox("Youre Logd in " + TextBox1.Text)
Form3.show()
End If
End If
Else
MsgBox("THE USERNAME DONT EXIT", MsgBoxStyle.Critical)
End If
End If


create user


If My.Computer.FileSystem.DirectoryExists(" C:\ACCOUNTS\") = True Then
Else
End If

If TextBox1.Text = "" Then
MsgBox("ERROR,YOUR ACCOUNT MUST HAVE ONE LETTER IN IT", MsgBoxStyle.Critical)
Else
End If

If TextBox2.Text = "" Then
MsgBox("ERROR,PLEASE INSERT A PASSWORD", 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

Embed
HTML Link
BBCode Link

Save & Share: Email to Friends Share on Facebook Share on Twitter Share on MySpace Save on Google Bookmarks Save on Delicious Digg reddit StumbleUpon


Author: LearnMoreAboutTech; Uploaded: Nov 8, 2009; Duration: 7:34; Views: 9

Tags: how  to  make  advanced  login  system  that  creates  users  in  visual  basic  studio  2008  systembolaget system idle process systemic lupus erythematosus system of a down system restore vista system requirements lab system mechanic system restore xp systematic system restore


Santas BoatRacing Car Jigsaw PuzzleSantaVilleChristmas RushToo Much PressureCharming GirlsMonster TrafficSanta Claus gift rushEmo GirlGnatSplat