I try to run the following command:
Console.WriteLine(My.Computer.Name)
I faced the following error:
"Computer" is not a member of "programName.My"
I am sincerely asking to know how I can overcome this error
I try to run the following command:
Console.WriteLine(My.Computer.Name)
I faced the following error:
"Computer" is not a member of "programName.My"
I am sincerely asking to know how I can overcome this error
you can just use without function:
System.Net.Dns.GetHostName
or:
Environment.MachineName