0% found this document useful (0 votes)
30 views

Post2 Database Project

This document provides instructions for creating a login system in C# with multiple forms. It involves creating a Windows Forms application with three forms - Form1, Form2 and Form3. Form2 and Form3 are designed differently, with Form3 containing a label called "User: Staff". The document then provides code to add to button click events on each form to switch between forms based on the username and password entered. It concludes by showing the expected output and providing a reference.

Uploaded by

Joms Alancado
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Post2 Database Project

This document provides instructions for creating a login system in C# with multiple forms. It involves creating a Windows Forms application with three forms - Form1, Form2 and Form3. Form2 and Form3 are designed differently, with Form3 containing a label called "User: Staff". The document then provides code to add to button click events on each form to switch between forms based on the username and password entered. It concludes by showing the expected output and providing a reference.

Uploaded by

Joms Alancado
Copyright
© © All Rights Reserved
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

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