Required namespace for this snippet:
Imports System.Net
Show the computer name in a message box:
Dim ComputerName As String = Dns.GetHostName
MessageBox.Show("You Computer Name is :" + ComputerName)
Happy coding!
Imports System.Net
Dim ComputerName As String = Dns.GetHostName
MessageBox.Show("You Computer Name is :" + ComputerName)