Username

  • Thread starter Thread starter Iceman
  • Start date Start date
I

Iceman

Does anyone know how to find the currently logged on user
in Windows 2000 using VB.NET? I have an app that does some
logging and I want to log the current username along with
other stuff.

Thanks.
 
Does anyone know how to find the currently logged on user
in Windows 2000 using VB.NET? I have an app that does some
logging and I want to log the current username along with
other stuff.

Thanks.

System.Environment.UserName - The name of the person logged on to the
system who started the current thread.

HTH
 
* "Iceman said:
Does anyone know how to find the currently logged on user
in Windows 2000 using VB.NET? I have an app that does some
logging and I want to log the current username along with
other stuff.

'Environment.UserName'.
 
Thanks. That is exactly what I wanted.

-----Original Message-----


System.Environment.UserName - The name of the person logged on to the
system who started the current thread.

HTH
 
Back
Top