Neokilla
Life is what you make it.
Today i will be teaching you how to make an advanced login in C#.
Requirements:
- Visual Basic
- Basic Knowledge
Step 1:
Goto https://sites.google.com and make a site this will be used to store your logins once there create a sub page below home and call it what you want.
Step 2:
Build a new form in vb, then go to project and add a new form so know you have two forms.
Step 3:
On form1 add two text boxes, a button and two labels, Name one label username and the other password, This will be your login. Now go to your password text box properties and change password character to * like this http://gyazo.com/9e18b4e25d71ba0c299558b798f1739f
Step 4:
Now double click your login button and add this code,
string userinfo = new System.Net.WebClient().DownloadString("https://sites.google.com/site/logintut/home/logins");
if (textBox1.Text != "" && textBox2.Text != "")
{
if (userinfo.Contains(textBox1.Text + " | " + textBox2.Text))
{
Hide();
Form2 Main = new Form2();
Main.Show();
}
else
{
MessageBox.Show("Login Failed, Please Try Again");
}
}
You will replace the website url i have with the one i told you to create earlier.
Step 5:
Now go to your website url which i told you to add earlier and add some text for example
username | password, replace username and password with what you want and now when you click login on your tool it will search the website for text you entered in the login and if it matches what's on the login it will take you to form2 which could be anything you want a XRPC tool for example else it will show an error.
This is a great way of making a login because you can have as many people as you want added, by just adding a new line on the site with the new login.
Your finished tool should look something like this
http://gyazo.com/63f3df9fbf308e8348160999bf7e4729
and the website like this http://gyazo.com/7ff471b804fb584a100e3866d82ed1d5
Leave a like if you found this tutorial helpful.
Requirements:
- Visual Basic
- Basic Knowledge
Step 1:
Goto https://sites.google.com and make a site this will be used to store your logins once there create a sub page below home and call it what you want.
Step 2:
Build a new form in vb, then go to project and add a new form so know you have two forms.
Step 3:
On form1 add two text boxes, a button and two labels, Name one label username and the other password, This will be your login. Now go to your password text box properties and change password character to * like this http://gyazo.com/9e18b4e25d71ba0c299558b798f1739f
Step 4:
Now double click your login button and add this code,
string userinfo = new System.Net.WebClient().DownloadString("https://sites.google.com/site/logintut/home/logins");
if (textBox1.Text != "" && textBox2.Text != "")
{
if (userinfo.Contains(textBox1.Text + " | " + textBox2.Text))
{
Hide();
Form2 Main = new Form2();
Main.Show();
}
else
{
MessageBox.Show("Login Failed, Please Try Again");
}
}
You will replace the website url i have with the one i told you to create earlier.
Step 5:
Now go to your website url which i told you to add earlier and add some text for example
username | password, replace username and password with what you want and now when you click login on your tool it will search the website for text you entered in the login and if it matches what's on the login it will take you to form2 which could be anything you want a XRPC tool for example else it will show an error.
This is a great way of making a login because you can have as many people as you want added, by just adding a new line on the site with the new login.
Your finished tool should look something like this
http://gyazo.com/63f3df9fbf308e8348160999bf7e4729
and the website like this http://gyazo.com/7ff471b804fb584a100e3866d82ed1d5
Leave a like if you found this tutorial helpful.
Last edited: