Professional Documents
Culture Documents
2
The program will create a LogIn System that loads
different forms for every user type
and if the user type adminis correct it will load
another form which is form2, then if the user type
"staff" the form3 will load.
Cona, Wendy
BSIT3_b1
Step 3. Select Visual C# and then select Windows Forms Application after
that click ok
Label1
TextBox1
Label2
TextBox2
button1
butoon2
Step 5.Add two forms as your Form2 and Form3. right click the highlighted word logInSystem
and select Add then select Windows form and enter. no need to rename.
To Add form3 just do it again the instruction in step 2.
2.
3.
1.
1. select
2. Click button
rename
TextBox1
label3
label2
textBox1
button1
button2
dateTimePicker1
Coding continue
Step 9.the same coding instruction in step 5,double click the button1 in
Form3 then copy the code below:
Output
Step 10. F5 to run the program and the output is look like this.
username: admin password: admin or
Username: staff password: staff
Output
ThankYOU
Hope you like it.
Reference/installer: