Back to Home
Detect CapsLock Status in C#
September 17, 2011 • 1 minute read

All usual registration forms will contain a password edit and users has to be warned for the Caps Lock state. So it is pretty easy in C# to check this. The following line will do the magic.
if (Console.CapsLock)
{
Console.WriteLine("CapsLock On!!!");
}
Happy C#…..