9
 This pr ogram cr eate a Log in System that loads diferen t orms or every user type and i the user type "admin" then the orm2 will load, then i the user type "staf" the orm3 will load POST #2 Submitted By !ris, eyca #ngelli$ue %& 'T3B( Step (& )pen the *isual Studio 2+(2 or - #pplication Step 2& clic. new /ro0ect

loginsystem

Embed Size (px)

DESCRIPTION

it3-b1

Citation preview

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 1/14

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 2/14

Step (& )pen the *isual Studio 2+(2 or - #pplica

Step 2& clic. new /ro0ect

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 3/14

Step 3& Select *isual - and then select 1indoworms #pplication ater that clic. o.

Edit the name

Of your project

 here into log in

system

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 4/14

Step & reate a orm( li.e this #s your 4rst orm

Select a control that you want to edit

'ts properties

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 5/14

Step 5&#dd two orms as your orm2 and orm3& 0ust righthighlighted word log'nSystem, then select #dd ater that select

and then 0ust enter and no need to rename& To #dd orm3 0ust do it again the instruction in step

1st

2nd

3rd

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 6/14

  1st Selectthis

2nd click this

 You can rename

this

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 7/14

Step 6&design your orm2 and orm3 0ust li.orm2 is almost the same as orm3 e7cept

label(, 0ust renamethe label( in orm3 to "8serStaf" the rest

same&

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 8/14

Step 9&:ere;s the coding portion, double clic. thebutton( in orm(&

then copy or type the code below

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 9/14

Continuecoding

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 10/14

then copy the code below

Step <&:ere;s the second coding portion,double clic. the button( or log in button in

orm2

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 11/14

Step =&the same coding instruction in step 5,doublebutton( in orm3 then copy the code below

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 12/14

Output

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 13/14

Step (+& 5 to run the program and the output isloo. li.e this&

username admin password admin

 or

8sername staf password staf 

Outpu

t

7/17/2019 loginsystem

http://slidepdf.com/reader/full/loginsystem 14/14

eerence