string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
More Related Contents:
- C# getting the path of %AppData%
- Getting multiple keys of specified value of a generic Dictionary?
- What’s the difference between an object initializer and a constructor?
- LINQ – Left Join, Group By, and Count
- Read the value of an attribute of a method
- How to limit the Maximum number of parallel tasks in c#
- How to call a VBScript file in a C# application?
- Remove text in-between delimiters in a string (using a regex?)
- Does a locked object stay locked if an exception occurs inside it?
- namespace naming conventions
- HTTP POST Returns Error: 417 “Expectation Failed.”
- how to convert NameValueCollection to JSON string?
- Is it possible to Embed Gecko or Webkit in a Windows Form just like a WebView?
- How to hide public methods from IntelliSense
- How to set a proxy for Webbrowser Control without effecting the SYSTEM/IE proxy
- Initialize library on Assembly load
- How to prevent duplicate values in enum?
- Table name and table field on SqlParameter C#?
- System.Timers.Timer Elapsed event executing after timer.Stop() is called
- What is the difference between ManualResetEvent and AutoResetEvent in .NET?
- How can I include line numbers in a stack trace without a pdb?
- How to register Windows Forms with Simple Injector
- A pattern to pause/resume an async task?
- Create object instance of a class from its name in string variable
- Multiples Table in DataReader
- How to sort list of Ip Addresses using c#
- WebUtility.HtmlDecode vs HttpUtilty.HtmlDecode
- click on a button in another application from my C# application?
- How to detect when laptop power cable has been disconnected?
- Custom Color Palette in Visual Studio Color Property Editor