Simple Login Form [No need MySQL server] [C#] [With Pictures] [Quick] 06-02-2018, 04:13 PM
#1
Hey People!
some of you know this but i dont care.
i just tell you how i make it.
one more question "why you make this shitty post?"
Answer : "cause there no post about Login Form and i post this cause im bored"
Lets do this!
-> Click New Project (File > New > Project) or click this Icon![[Image: cc1f0ba66c71141d0f4c2a396827a38a.png]](https://gyazo.com/cc1f0ba66c71141d0f4c2a396827a38a.png)
-> then it will be showing like this :
![[Image: 8735bf01e29182ab81c75e6a094dd8f4.png]](https://gyazo.com/8735bf01e29182ab81c75e6a094dd8f4.png)
dont forget to put in Visual C# > Windows Forms App (.NET Framework) and Rename your Project whatever you want it (for me FuckLogin) after that click OK (button)
-> Put 2 TextBox and Button then design what do u want like this :
![[Image: 28013cb22e9afe10112f517f7490692f.png]](https://gyazo.com/28013cb22e9afe10112f517f7490692f.png)
Rename the button into Login. click login button then write this code : (for button1_Click)
<>did you see Form2 LOL = new Form2();? if you see that we have't to the Form2 step!
-> go to Project > Add Windows Form then click! it will be showing like this :
![[Image: 252654cffa089a1d7617e9ce2a204e05.png]](https://gyazo.com/252654cffa089a1d7617e9ce2a204e05.png)
rename whatever you want for me (Form2.cs)
Follow the code instruction
some of you know this but i dont care.
i just tell you how i make it.
one more question "why you make this shitty post?"
Answer : "cause there no post about Login Form and i post this cause im bored"
Lets do this!
-> Click New Project (File > New > Project) or click this Icon
![[Image: cc1f0ba66c71141d0f4c2a396827a38a.png]](https://gyazo.com/cc1f0ba66c71141d0f4c2a396827a38a.png)
-> then it will be showing like this :
![[Image: 8735bf01e29182ab81c75e6a094dd8f4.png]](https://gyazo.com/8735bf01e29182ab81c75e6a094dd8f4.png)
dont forget to put in Visual C# > Windows Forms App (.NET Framework) and Rename your Project whatever you want it (for me FuckLogin) after that click OK (button)
-> Put 2 TextBox and Button then design what do u want like this :
![[Image: 28013cb22e9afe10112f517f7490692f.png]](https://gyazo.com/28013cb22e9afe10112f517f7490692f.png)
Rename the button into Login. click login button then write this code : (for button1_Click)
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace FuckLogin
{
public partial class Form1 : Form
{
string username = "Skofos"; //textbox for password xD
string pass = "shit"; //TextBox for password
Form2 LOL = new Form2(); // Form2 Instruction
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if ((textBox1.Text == username && textBox2.Text == pass))
{
MessageBox.Show("Login Succes!", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
LOL.Show(); // form2 showing up
this.Hide(); // FuckLogin aka form1 hiding
}
else
{
MessageBox.Show("Login Error!", "Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
}-> go to Project > Add Windows Form then click! it will be showing like this :
![[Image: 252654cffa089a1d7617e9ce2a204e05.png]](https://gyazo.com/252654cffa089a1d7617e9ce2a204e05.png)
rename whatever you want for me (Form2.cs)
Follow the code instruction
_______________________________________
Thank you for visiting this page 
I hope this tutorial is usefully for you guys/girls
"#ImBored"
More question = "how do i make more account for this form?"
Answer = "make this code :

I hope this tutorial is usefully for you guys/girls

"#ImBored"
More question = "how do i make more account for this form?"
Answer = "make this code :
_______________________________________
Code:
string username = "fraggy";
string pass = "lmao";
string username1 = "noobie";
string pass1 = "lolz";
if ((textBox1.Text == username && textBox2.Text == pass))
{
Messagebox.show("lol");
}
else
{
Messagebox.show("xD");
}
if ((textBox1.Text == username1 && textBox2.Text == pass1))
{
Messagebox.show("lol");
}
else
{
Messagebox.show("xD");
}_______________________________________
(This post was last modified: 06-02-2018, 04:27 PM by Skofos.)
Discord : Skof#3013
Skype : live:skofos.05
Skype : live:skofos.05



![[+]](https://sinister.li/images/modern/collapse_collapsed.png)











