-
Get Current User Info
I created a backup project some time ago using VB6.
As I learn VB.NET I am finding a lot of trouble understanding the code. In my previous project I used the code at http://www.mvps.org/vbnet/ to get the user information from the current user.
Is there a way to get the user information in VB.NET ... an easy or simple way. I have little to no expereince and I am not sure if I am over stepping my bounds.
Thanks.
Shook
-
When you say user information, what exactly are you taking about?
-
Login Name ...
Thats about it
Its a backup app for Windows XP workstations ... but multiple users login to each PC.
-
Hi
Try this
MsgBox(Environment.UserName)
-
Worked Like a Charm.
Thank Man.
It wasn't that easy in VB6 was it?
-
Yeah in vb6 it was:
MsgBox Environ("Username")