C# WinForms:
I have some code like this:
if (GetAsyncKeyState((int)Keys.ShiftKey) != 0)
{
nShift = (nShift | 1);
}
If I change the if to Keys.Shift then it is working correctly like tabbing forward but if then it breaks the tabbing-backward which is TAB+SHIFT keys on keyborad. but I want to have both forward and backward tabbing to work. How can I change this to work correctly?
.net difference between right shift and left shift keys is the answer. we should say Keys.LShiftKey and Keys.RShiftKey