I need a way to get the computers name or other unique identifier.
Which class provides this information?
Thanks
Printable View
I need a way to get the computers name or other unique identifier.
Which class provides this information?
Thanks
Look into Environment class... Don't have the IDE here, so I can't show you the exact code for it
Can try this:
VB Code:
Dim userName As String = System.Security.Principal.WindowsIdentity.GetCurrent.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