Mega Code Archive
Environment UserName Property gets the user name of the person who is currently logged on to the Windows operating system
Imports System
Class Sample
Public Shared Sub Main()
Console.WriteLine("UserName: {0}", Environment.UserName)
End Sub 'Main
End Class