Didnt work.

Here is what I am trying to accomplish. I have found the following code as a starting point.

http://www.codeproject.com/KB/vb/screen.aspx

However this will send Windows Api key events to the active application. I would like to adapt this into a KeyBoard User Control for my application. There are 3 calls project that calls "SetActiveWindow(8975651603260375040)"
this will call the currently active window. I need to replace this and send the keycodes to the control that had focus prior to pressing the Keyboard control

Thanks

Dan