It already refocuses the target window each time you click the form, but unfortunately this doesn't prevent the keystates from being lost. I've already considered subclassing to try and prevent the form from getting focus but the problem with that is I don't know how...I tried this code and setting the uMsg to 0 (WM_NULL) whenever WM_ACTIVATE/WM_ACTIVATEAPP/WM_SETFOCUS/WM_KILLFOCUS occurs but it has no effect. If you know how to do it or know what I'm doing wrong that would be great

And yet again the frame flicker issue comes up...I've had an option for that since before my first topic Trust me, I've thought this through...I'm actually trying to do a good job of it.