Home All Groups Group Topic Archive Search About

How do I get the current logged in user in Windows Forms

Author
16 Mar 2005 10:19 PM
anonieko
>
>
>
You can get the Windows Principal and User Name by the following:
System.Security.Principal.WindowsIdentity.GetCurrent()
System.Security.Principal.WindowsIdentity.GetCurrent().Name

AddThis Social Bookmark Button