get credentials of current user windows form code example
Example: c# get username
string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;