I have a problem with a program that loses focus. It\'s not my program. How can I write a second program to set focus to that window every 1-2 seconds? Is is possible to do
You can use following Win32 API if you want to bring some other program/process
[DllImport("user32.dll")] static extern bool SetForegroundWindow (IntPtr hWnd); private void BringToFront(Process pTemp) { SetForegroundWindow(pTemp.MainWindowHandle); }