Capture Windows Login Name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Sm9zZXBo?=

    Capture Windows Login Name

    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. Blauth

    #2
    Re: Capture Windows Login Name

    Joseph schrieb:
    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.Environm ent will provide you with a lot of system information.
    you might take a look at Environment.Use rName.

    greets,
    J. Blauth

    Comment

    • kimiraikkonen

      #3
      Re: Capture Windows Login Name

      On Jun 21, 10:23 pm, Joseph <Jos...@discuss ions.microsoft. comwrote:
      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.Environm ent.UserName



      Thanks,

      Onur Güzel

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Capture Windows Login Name

        "Joseph" <Joseph@discuss ions.microsoft. comschrieb:
        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.Us erName', 'SystemInformat ion.UserName'.

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

        Comment

        Working...