Why don’t Focus() and SetForegroundWindow() work?
Once upon a time Microsoft decided these functions would no longer bring things to the foreground on Windows (about the time of Windows ME). Instead, these functions would make the taskbar button of the program or window flash incessantly.
This is all well and good, and I’m sure there were good intentions behind it, but quite frankly, it’s annoying when your app is supposed to come to the foreground and it doesn’t.
Read more