How to check the Caps Lock mode on or off in C#

1 Answer

0 votes
using System;

namespace ConsoleApplication_C_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            bool b = Console.CapsLock;

            Console.WriteLine(b);
        }
    }
}

/*
run:
  
False

*/

 



answered Jan 13, 2017 by avibootz

Related questions

1 answer 236 views
1 answer 173 views
1 answer 171 views
1 answer 148 views
1 answer 115 views
...