Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 14

POST #2

This program create


a Log in System that
loads different
forms for every user

First: Open the Visual Studio 2012 or C# Application

Second: click new Project

Third: Select Visual C# and then select Windows


Forms Application after that click ok

Create
your
filename

Fourth: Create youre form1--like this!

Right click and choose the property and change the text

Fifth: 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 enter,
To Add form3 do it again.

2nd

3rd

1st

1st Select

2nd Click

Rename

Sixth: Design your Form2 and Form3


Form2 is almost the same as Form3 except the
label1, and rename
the label1 in Form3 is "User:Staff" and the rest is
the same.

Seventh: Double click the


button1, and follow this code

Continue coding
here

Eight: Here's the second coding portion,


double click the button1 or log in button in
Form2, and follow this code

Ninth: The same coding instruction in step 5,double


click the button1 in Form3 and follow this code

The
output

Tenth: F5 to run the program and the


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

The
output

Reference of the program:

Thank you
Fo r
Vi s i t i n g
My blog
Godbless!!

You might also like