0% found this document useful (0 votes)
199 views14 pages

Paul Post 2

This document provides 10 steps to create a login system in C# with 3 different forms. The login system loads different forms based on the user type entered: form2 loads for user type "admin" and form3 loads for "staff". The steps include designing the forms, adding labels, textboxes and buttons, and providing code snippets to code the login functionality for each form. The output shows the login screen prompting for username and password depending on the user type selected.

Uploaded by

Jardy Paul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
199 views14 pages

Paul Post 2

This document provides 10 steps to create a login system in C# with 3 different forms. The login system loads different forms based on the user type entered: form2 loads for user type "admin" and form3 loads for "staff". The steps include designing the forms, adding labels, textboxes and buttons, and providing code snippets to code the login functionality for each form. The output shows the login screen prompting for username and password depending on the user type selected.

Uploaded by

Jardy Paul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

POST #2

This program create a Log in System


that loads different forms for every user
type
and if the user type "admin" then the
form2 will load, then if the user type
By. Paul Winson"staff"
Jardinel the form3 will load
BSIT3 Block-1

Step 1. Open the Visual Studio 2012 or C# Application


Step 2. click new Project

Step 3. Select Visual C# and then select Windows Forms


Application after that click ok

Edit the name


Of your project
here into log in
system

Step 4. Create a Form1 like this As your first form.


Label3
Label3

Label1
Label1
Label2
Label2
button1
button1
butoon2
butoon2

TextBox1
TextBox1
TextBox2
TextBox2

Select a control that you want to edit


Its properties

Step 5.Add two forms as your Form2 and Form3. just right click the
highlighted word logInSystem, then select Add after that select Windows form
and then just enter and no need to rename.
To Add form3 just do it again the instruction in step 2.

2nd
3rd

1st

11stst Select
Select this
this

2nd click this

You can rename


this

Step 6.design your Form1 and Form3 just like this.


Form2 is almost the same as Form2 except the label1, just
rename
richTextBox1 label3
thelabel1
label1
Form3 to "User:Staff"
the rest is the same.
label1 in
richTextBox1
label3

label2
label2
textBox1
textBox1
button
button
1
button2
1
button2

dateTimePicker1

Step 7.Here's the coding portion, double click the


button1 in Form1.
then copy or type the code below:

Continue
Continue
coding
coding
Here
Here

Step 8.Here's the second coding portion,


double click the button1 or log in button in
Form2 then copy the code below:

Step 9.the same coding instruction in step 5,double click the


button1 in Form3 then copy the code below:

Outpu
t

Step 10. F5 to run the program and the output is


look like this.
username: admin password: admin or
Username: staff password: staff

Outpu
t

Reference of the program:

Thank you
I hope
You learn a lot

You might also like