Results 1 to 6 of 6

Thread: Get Current User Info

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    Toronto, Canada
    Posts
    112

    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

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    When you say user information, what exactly are you taking about?
    Dont gain the world and lose your soul

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    Toronto, Canada
    Posts
    112
    Login Name ...

    Thats about it

    Its a backup app for Windows XP workstations ... but multiple users login to each PC.

  4. #4
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179
    Hi
    Try this
    MsgBox(Environment.UserName)

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    Toronto, Canada
    Posts
    112

    Worked Like a Charm.

    Thank Man.

    It wasn't that easy in VB6 was it?

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Yeah in vb6 it was:

    MsgBox Environ("Username")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width