I want to get the current computer name.
this is my code:
Public Function GetComputerName() As String
Dim ComputerName As String
ComputerName = System.Net.Dns.GetHostName
Return ComputerName
End Function
this code working, but i remember that there is faster way.
what is the fast way to get the computer name?
you can just use without function:
or: