Retrieves the user name of the current thread. This is the name of the user currently logged onto the system.
[Visual Basic] Public Shared ReadOnly Property UserName As String [C#] public static string UserName {get;} [C++] public: __property static String* get_UserName(); [JScript] public static function get UserName() : String;
the current user name.
SystemInformation Class | SystemInformation Members | System.WinForms Namespace