Login and Logout coding in C# for windows application

Posted by Agopi.Net under C# on 8/29/2012 | Points: 10 | Views : 9476 | Status : [Member] | Replies : 1
Hi,

I an developing employee attendance project. Since i could not able to complete this project because i am struggle in logout coding. I want to save the login and logout time in current date within single row. Could any one share the coding in C# that will help me.

Regards,
Gopi A.




Responses

Posted by: Nksingh420 on: 8/31/2012 [Member] Starter | Points: 25

Up
0
Down
Gopi you can use studentId for maintain all the field

Login Form:
string s1 = textBox1.Text;//studentId
Login fm = new Login(s1);
fm.Show();
this.Hide();

UserForm:
public UserForm(string s1)
{
InitializeComponent();
label2.Text = s1;//Your StudentId here.
}
now you can fatch all information from database (select * from tb_name where studentId='"+s1+"')



Agopi.Net, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response