Я устанавливаю владельцем окна главное окно приложения.
Пробовал несколько способов явно активировать дочернее окно через Win32 API, но не сработало.
используется ниже API явно, чтобы оставить мое дочернее окно в покое:
Код: Выделить всё
[DllImport("user32.dll", SetLastError = true)]
internal static extern IntPtr SetFocus(IntPtr hWnd);
[DllImport("user32.dll", SetLastError = true)]
internal static extern IntPtr SetActiveWindow(IntPtr hWnd);
[DllImport("user32.dll")]
internal static extern bool SetForegroundWindow(IntPtr hWnd);
Заранее спасибо.
Подробнее здесь: https://stackoverflow.com/questions/787 ... come-to-fr