ConaWendyPostNo.2

download ConaWendyPostNo.2

of 14

description

The program will create a LogIn System that loads different forms for every user typeand if the user type “admin”is correct it will load another form which is form2, then if the user type"staff" the form3 will load.

Transcript of ConaWendyPostNo.2

PowerPoint Presentation

The program will create a LogIn System that loads different forms for every user typeand if the user type adminis correct it will load another form which is form2, then if the user type"staff" the form3 will load.Post No.2 Cona, WendyBSIT3_b1Step 1. Open the Visual Studio 2012 or C# ApplicationStep 2. click new Project

Step 3. Select Visual C# and then select Windows Forms Application after that click ok

Edit the nameOf your project here into log in systemStep 4. Create a Form1 like this As your first form.Select control that you want to editthe properties

Label3Label1Label2TextBox1TextBox2

button1butoon2Step 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.

1.2.3.

1. select2. Click buttonrenameStep 6.design your Form1 and Form3 just like this.Form2 is almost the same as Form2 except the label1, just renamethe label1 in Form3 to "User:Staff" the rest is the same.

button1button2textBox1label1label3TextBox1dateTimePicker1

label2Step 7.Here's the coding portion, double click the button1 in Form1.then copy or type the code below:

Coding continuethen copy the code below:

Step 8.Here's the second coding portion, double click the button1 or log in button in Form2

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 orUsername: staff password: staffOutput

ThankYOU Hope you like it.Reference/installer: