Hi, i want to make a windows applications which should have information of user login and log off information . whenever user start a computer. can you help or give some information about this.
Do this way
label3.Text = CurrentUserLoggedInTime.Value.ToString()
i have use break point it is not going till that step it is executing till
UserPrincipal uc = UserPrincipal.FindByIdentity(c, "Rashid");
This line takes time. You need to wait
the form is loaded and it dosent show anything in label3.text
The same thing is working fine for me in windows 7. Make sure you are not in a domain
© COPYRIGHT 2026 ASPSnippets.com ALL RIGHTS RESERVED.