How to check the Number Lock (Num 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.NumberLock;

            Console.WriteLine(b);
        }
    }
}

/*
run:
  
True

*/

 



answered Jan 13, 2017 by avibootz

Related questions

1 answer 199 views
1 answer 171 views
1 answer 173 views
1 answer 148 views
1 answer 116 views
...