Any ideas why when running my application through terminal server; I open another application and try to send keystrokes via sendkeys to it, but the application never gets the focus and never receives the keystrokes?
I have tried opening the application with both shell and System.Diagnostics.Process.start. Then for shell, I use the AppWinStyle.NormalFocus parameter. This works fine on my PC, but not on Terminal server. I also tried using the SetForegroundWindow(ipWinHandle) API, but that does not work on my PC or on Terminal Server.
Any ideas as to what I can do?
Thanks.
ps. If you need to see my code, just let me know.
I have tried opening the application with both shell and System.Diagnostics.Process.start. Then for shell, I use the AppWinStyle.NormalFocus parameter. This works fine on my PC, but not on Terminal server. I also tried using the SetForegroundWindow(ipWinHandle) API, but that does not work on my PC or on Terminal Server.
Any ideas as to what I can do?
Thanks.
ps. If you need to see my code, just let me know.