Login Register






Tutorial Simple Login Form [No need MySQL server] [C#] [With Pictures] [Quick] filter_list
Author
Message
Simple Login Form [No need MySQL server] [C#] [With Pictures] [Quick] #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]
-> then it will be showing like this :
[Image: 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]
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);            }        }    } }
<>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]
rename whatever you want for me (Form2.cs)
Follow the code instruction


_______________________________________
Thank you for visiting this page Biggrin
I hope this tutorial is usefully for you guys/girls Biggrin
"#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

[+] 1 user Likes Skofos's post
Reply

RE: Simple Login Form [No need online] [C#] [With Pictures] #2
Any Question for C# Tutorial?
Comment down Below!
Discord : Skof#3013
Skype : live:skofos.05

Reply

RE: Simple Login Form [No need MySQL server] [C#] [With Pictures] [Quick] #3
(06-11-2018, 03:17 AM)wiccaphasespringseternal Wrote: Good for personal use, but for anyone trying to build professional applications, I'm sure I don't need to lecture you on this, but look into EZLib, Authed, or 961API.
Thanks
Discord : Skof#3013
Skype : live:skofos.05

Reply

RE: Simple Login Form [No need MySQL server] [C#] [With Pictures] [Quick] #4
Evidently It's quite basic and (obviously) cannot be used In a corporate environment, but handy for those wishing to get a general understanding of how login forms function with responses received as defined In the conditional statements.
[Image: AD83g1A.png]

[+] 1 user Likes mothered's post
Reply

RE: Simple Login Form [No need MySQL server] [C#] [With Pictures] [Quick] #5
(06-11-2018, 04:08 AM)mothered Wrote: Evidently It's quite basic and (obviously) cannot be used In a corporate environment, but handy for those wishing to get a general understanding of how login forms function with responses received as defined In the conditional statements.
Yea thats right man! this login form can't be used on corporate environment.
Discord : Skof#3013
Skype : live:skofos.05

Reply