9

How do I get the currently signed in username in a windows forms application? The app runs on Windows Embedded Standard 7 O/S.

sarsnake
  • 26,667
  • 58
  • 180
  • 286

1 Answers1

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