Tuesday, August 4, 2015

Get current user name Vb.net


 

Hi welcome for more one tutorial. This time I will teach you how you can get the name of current user

1- Create a new Visual Basic project.
2- Add Label
3- Double-click in form and then paste this code:

Me.Label1.Text = SystemInformation.UserName

4- Now let´s test it. Debug (F5) the project. The label then you choose will get the current user name of Windows


No comments:

Post a Comment