System.Environment.UserName. That will get you the name of the person who
started the current thread.
There's also System.Security.Principal.WindowsIdentity.GetCurrent(). This
gets you the WindowsIdentity object that represents the current Windows
user. You can then access the Name property.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.