Professional Documents
Culture Documents
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 "Staff" The Form3 Will Load
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 "Staff" The Form3 Will Load
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.
Second
step
Third
step
First
step
FIRST
SECOND
STEP 6: Design your Form 1,2 &3. Form 2 is almost the same
with Form 3 except the labels just rename the label in form 3
and the rest is the same.
Continue
coding
here
Step 8.Here's the second coding portion, double click the button1 or log in button in Form2.
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
END