using .NET Framework 4.7.1
the frame or form Window size shrink after calling Keyboard.GetKeyStates Is there any reason for that ? or its a bug ? I am checking if ctrl is down or toggle on other window .
if (((int)Keyboard.GetKeyStates(Key.LeftCtrl) == 1 || (int)Keyboard.GetKeyStates(Key.LeftCtrl) == 3)) { Console.WriteLine("pressed"); }
As can be seen in the pictures: