How do I get the currently signed in username in a windows forms application? The app runs on Windows Embedded Standard 7 O/S.
Asked
Active
Viewed 1.4k times
1 Answers
26
You probably want Environment.UserName
. See http://msdn.microsoft.com/en-us/library/system.environment.username.aspx for details.

JaredReisinger
- 6,955
- 1
- 22
- 21
-
1For those looking for domain\user, this can be supplemented with Environment.UserDomainName. – user8675309 Feb 05 '21 at 14:58