Results 1 to 4 of 4

Thread: [02/03] Get Computer's Name

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    [02/03] Get Computer's Name

    I need a way to get the computers name or other unique identifier.
    Which class provides this information?

    Thanks

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: [02/03] Get Computer's Name

    Look into Environment class... Don't have the IDE here, so I can't show you the exact code for it

  3. #3
    Lively Member
    Join Date
    Jun 2006
    Posts
    83

    Re: [02/03] Get Computer's Name

    Can try this:
    VB Code:
    1. Dim userName As String = System.Security.Principal.WindowsIdentity.GetCurrent.Name

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,051

    Re: [02/03] Get Computer's Name

    Sorry, my mistake I get confused sometimes when I post.
    I can't use either the Security Class or the Environment class because neither exists in the Compact Framework.

    I should have posted to the Compact Framework forum, but it's just as well posted here anyway. The Compact Framework forum is rarely used by anyone. I'll go there, but if anyone knows the answer, feel free....

    Thanks

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