Capture Windows Login Name

J

Joseph

In a Winform application using VB.Net is there a way to capture the user's
Windows login name? Any help would be greatly appreciated, thanks.
 
J

J. Blauth

Joseph said:
In a Winform application using VB.Net is there a way to capture the user's
Windows login name? Any help would be greatly appreciated, thanks.

System.Environment will provide you with a lot of system information.
you might take a look at Environment.UserName.

greets,
J. Blauth
 
K

kimiraikkonen

In a Winform application using VB.Net is there a way to capture the user's
Windows login name? Any help would be greatly appreciated, thanks.

That should be:

System.Environment.UserName



Thanks,

Onur Güzel
 
H

Herfried K. Wagner [MVP]

Joseph said:
In a Winform application using VB.Net is there a way to capture the user's
Windows login name? Any help would be greatly appreciated, thanks.

'Environment.UserName', 'SystemInformation.UserName'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top