I want to make a windows form application and want to use windows authentication to log in the user, it has to be used in intranet. the applcation should accept the user name an
Environment.UserName gives you the username of the current user. A password is not needed since the user have logged into windows.
Environment.UserName
Alternative: WindowsIdentity.GetCurrent()