C# - Sending keyboard events to (last) selected window
<p>I want to use virtual keyboard assembly found here <a href="http://www.codeproject.com/KB/miscctrl/touchscreenkeyboard.aspx" rel="nofollow">http://www.codeproject.com/KB/miscctrl/touchscreenkeyboard.aspx</a> like on screen keyboard (OSK.exe) in Windows. Can someone please tell me how can I use it so that it always stays on top and yet for user to be able to select other windows on dekstop for keyboard input, just like "on screen keyboard" in Windows, specifically I don't know how to select last selected window (can't use GetForegroundWindow or GetFocus only, because when user clicks on virtual keyboard it gets focused and I get handle of keyboard window itself)?
This is very urgent to me so any advice would be greatly appreciated.</p>

<p>Thanks in advance.</p>
