Below is how to get the computer name using VB.NET in WinForms application.

Dim strComputerName As String = Environment.MachineName.ToString()

Happy Coding!

Last modified: March 8, 2019

Comments

Write a Reply or Comment

Your email address will not be published.