I am trying to give my application the power to focus another Window (Notepad in this case)
My Class is looking like this
public static class Win32W
Answer by Avinash Jha is good. Just add following two lines after user32.SetForegroundWindow(hWnd);, you will not need to add robot keys VK_ENTER to activate window, as clicking enter will cause clicking default key of window (e.g. button OK, Run)
...
user32.SetForegroundWindow(hWnd);
user32.SetFocus( winOne.winHandle);
Thread.sleep(500);
user32.ShowWindow(winOne.winHandle, WinUser.SW_SHOWNOACTIVATE);
return false;
...