I'm trying to automate Installation Wizard and I won't to know if child button in window is active. This need to make some kind a log file while test is performing. Any help will do)
Asked
Active
Viewed 1,041 times
0
-
1Check what is the `ActiveControl` – V4Vendetta Feb 27 '12 at 10:19
-
As I understand you need to determine a focused control. See here http://stackoverflow.com/questions/435433/what-is-the-preferred-way-to-find-focused-control-in-winforms-app – Andrei Schneider Feb 27 '12 at 10:33
-
I find the solution using IsWindowEnabled(IntPtr hWnd), see this http://www.pinvoke.net/default.aspx/user32.iswindowenabled – fedya.ua Feb 27 '12 at 11:23