|
-
Jan 17th, 2007, 09:08 PM
#1
Thread Starter
Frenzied Member
[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
-
Jan 17th, 2007, 10:40 PM
#2
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
-
Jan 17th, 2007, 10:48 PM
#3
Lively Member
Re: [02/03] Get Computer's Name
Can try this:
VB Code:
Dim userName As String = System.Security.Principal.WindowsIdentity.GetCurrent.Name
-
Jan 17th, 2007, 10:59 PM
#4
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|