This blog is a depository for things I have found regarding VB.NET and C#.NET development (and other things I may need to remember). This blog is primarily for my own reference, but if the information I found is useful to others, then that is great. If others want to contribute with comments or other information, then that is great too.
Monday, April 13, 2009
GetComputerName equivalent in VB.NET and C#
The Win32Api GetComputerName has a simpler equivalent in the .NET world:
Dim compName as String = Environment.MachineName.ToString
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.