Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows user account

Status
Not open for further replies.

fmt

Programmer
Aug 5, 2005
53
US
Hello,
I have simple C# Windows Application. How do I get windows user account in order to build security to this app.
I am trying to get windows user login and check if they belong to particular security group and give them access to application thereafter.
Thanks
 
Environment.UserName and Environment.UserDomainName will give you the information you need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top