Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
XML RSS Feed
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
 
TitleGet the current user's name in Visual Basic .NET
DescriptionThis example shows how to get the current user's name in Visual Basic .NET.
Keywordsuser name, username, GetUserName, current user, VB.NET
CategoriesWindows, 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
 
 
Copyright © 1997-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated