Posted By

mafro on 04/27/07


Tagged

username


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

goo
haoji
D4RKCODE


Current User


 / Published in: VB.NET
 

Retrieve current user identity

  1. 'retrieve current user identity
  2. Dim wi As Security.Principal.WindowsIdentity = Security.Principal.WindowsIdentity.GetCurrent()
  3. lblUserName.Text = wi.Name

Report this snippet  

You need to login to post a comment.