|
|
Title | Get the current user's name in Visual Basic .NET |
Description | This example shows how to get the current user's name in Visual Basic .NET. |
Keywords | user name, username, GetUserName, current user, VB.NET |
Categories | Windows, VB.NET |
|
|
Simply use the SystemInformation object's UserName property.
|
|
Private Sub Form1_Load(ByVal sender As System.Object, ByVal _
e As System.EventArgs) Handles MyBase.Load
lblUserName.Text = SystemInformation.UserName
End Sub
|
|
|
|
|
|