'Environment.UserName' will return the user name of the user who created the
current thread ina win forms app this would usually be the logged on user.
System.Security.Principal.WindowsIdentity.GetCurrent();
This returns a reference to a WindowsIdentity object representing the
current logged in user. You can use the Name property to get the login name
of the user.