![]() |
|
Tutorial Simple Login Form [No need MySQL server] [C#] [With Pictures] [Quick] - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework) +--- Thread: Tutorial Simple Login Form [No need MySQL server] [C#] [With Pictures] [Quick] (/Thread-Tutorial-Simple-Login-Form-No-need-MySQL-server-C-With-Pictures-Quick) |
Simple Login Form [No need MySQL server] [C#] [With Pictures] [Quick] - Skofos - 06-02-2018 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 ![]() -> then it will be showing like this : ![]() 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 : ![]() 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 : ![]() 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 : _______________________________________
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");
}_______________________________________
RE: Simple Login Form [No need online] [C#] [With Pictures] - Skofos - 06-02-2018 Any Question for C# Tutorial?
Comment down Below! RE: Simple Login Form [No need MySQL server] [C#] [With Pictures] [Quick] - Skofos - 06-11-2018 (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 RE: Simple Login Form [No need MySQL server] [C#] [With Pictures] [Quick] - mothered - 06-11-2018 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. RE: Simple Login Form [No need MySQL server] [C#] [With Pictures] [Quick] - Skofos - 06-11-2018 (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. |