kcwallace Posted October 3, 2006 Posted October 3, 2006 I need to determine a users network user name from within a C# winForm. I have the VB equivalent: Dim NetName As String = My.User.Name Quote Go Beavs!!!
Gill Bates Posted October 3, 2006 Posted October 3, 2006 System.Security.Principal.WindowsIdentity identity = System.Security.Principal.WindowsIdentity.GetCurrent(); Console.WriteLine(identity.Name); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.